aboutsummaryrefslogtreecommitdiff
path: root/src/ansi.rs
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2016-06-06 15:13:45 -0700
committerJoe Wilm <joe@jwilm.com>2016-06-06 15:13:45 -0700
commit6636cf6b9fa03a711f8c3aa2d6ca43248fecfc0f (patch)
tree0c5116d2cb479bad8be1ed42cf91368b25091861 /src/ansi.rs
parente5aeae69aabe2586d7bb3fc90c24cefc39af3e63 (diff)
downloadalacritty-6636cf6b9fa03a711f8c3aa2d6ca43248fecfc0f.tar.gz
alacritty-6636cf6b9fa03a711f8c3aa2d6ca43248fecfc0f.zip
Minor updates to terminal handling
Properly handles goto_col and goto_row. Additionally, input wrapping is handled. Truecolor specs are now set appropriately.
Diffstat (limited to 'src/ansi.rs')
-rw-r--r--src/ansi.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/ansi.rs b/src/ansi.rs
index 389ab94f..cd61c6d5 100644
--- a/src/ansi.rs
+++ b/src/ansi.rs
@@ -551,13 +551,11 @@ impl Parser {
match raw[0] {
'@' => handler.insert_blank(arg_or_default!(args[0], 1)),
'A' => {
- debug_csi!();
handler.move_up(arg_or_default!(args[0], 1));
},
'B' | 'e' => handler.move_down(arg_or_default!(args[0], 1)),
'c' => handler.identify_terminal(),
'C' | 'a' => {
- debug_csi!();
handler.move_forward(arg_or_default!(args[0], 1))
},
'D' => handler.move_backward(arg_or_default!(args[0], 1)),
@@ -572,7 +570,7 @@ impl Parser {
handler.clear_tabs(mode);
},
- 'G' | '`' => handler.goto_col(arg_or_default!(args[0], 1)),
+ 'G' | '`' => handler.goto_col(arg_or_default!(args[0], 1) - 1),
'H' | 'f' => {
let y = arg_or_default!(args[0], 1);
let x = arg_or_default!(args[1], 1);
@@ -613,7 +611,7 @@ impl Parser {
'X' => handler.erase_chars(arg_or_default!(args[0], 1)),
'P' => handler.delete_chars(arg_or_default!(args[0], 1)),
'Z' => handler.move_backward_tabs(arg_or_default!(args[0], 1)),
- 'd' => handler.goto_row(arg_or_default!(args[0], 1)),
+ 'd' => handler.goto_row(arg_or_default!(args[0], 1) - 1),
'h' => {
let mode = Mode::from_primitive(args[0]);
match mode {