Tweaked options. - icy_draw - icy_draw is the successor to mystic draw. fork / mirror
HTML git clone https://git.drkhsh.at/icy_draw.git
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit d6b7ca2bef070e83e7a7c13942dce92a98d572bc
DIR parent 7cb16aabcbb9827209e54bc2df89bcaf4798f41c
HTML Author: Mike Krüger <mkrueger@posteo.de>
Date: Fri, 29 Sep 2023 08:22:17 +0200
Tweaked options.
Diffstat:
M crates/icy_play/src/main.rs | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
---
DIR diff --git a/crates/icy_play/src/main.rs b/crates/icy_play/src/main.rs
@@ -162,8 +162,16 @@ fn show_buffer(
}
opt.control_char_handling = icy_engine::ControlCharHandling::FilterOut;
opt.longer_terminal_output = true;
- opt.compress = false;
+ opt.compress = true;
+ opt.use_skip_ws = false;
+ opt.preserve_line_length = true;
+
+ if matches!(terminal, Terminal::IcyTerm) {
+ opt.control_char_handling = icy_engine::ControlCharHandling::IcyTerm;
+ }
+
let bytes = buffer.to_bytes("ans", &opt)?;
+
if !single_frame && terminal.use_dcs() {
io.write(b"\x1BP0;1;0!z")?;
}