meli/tools
Manos Pitsidianakis e8e7697001
terminal: fix edge case with strings/linebreaking
When printing and line-breaking a string in CellBuffer::write_string(),
the line should continue from the "beginning" of the previous one.
However it might be different than the offset of the first character of
the string, because it may be indented already.

This would result in awkward line breaks like:

            Available actions: [ list- |# end of terminal/border
            post, list-unsubscribe, lis|
            t-archive ]

This commit adds an extra argument to write_string() to specify the x
offset of the string, so that we can apply it while printing characters
but ignore it when the line changes; then the x coordinate will take the
value of the line_break value.

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2024-05-30 13:58:56 +03:00
..
src terminal: fix edge case with strings/linebreaking 2024-05-30 13:58:56 +03:00
Cargo.lock tools: remove obsolete imapshell.rs and smtp_conn.rs 2024-05-29 22:47:35 +03:00
Cargo.toml tools: remove obsolete imapshell.rs and smtp_conn.rs 2024-05-29 22:47:35 +03:00
README.md tools: remove obsolete imapshell.rs and smtp_conn.rs 2024-05-29 22:47:35 +03:00
rustfmt.toml Move managesieve-client binary to tools/ 2023-11-22 15:10:23 +02:00

meli tools

This crate holds a collection of small binaries used mostly for meli development.