mirror of
https://github.com/alacritty/alacritty.git
synced 2025-11-06 22:44:18 -05:00
Fix DECOM cursor motion
This fixes a missing `GOTO 0,0` when entering the terminal origin mode. Closes #8636.
This commit is contained in:
parent
376cdb3700
commit
9f8fed7c9e
7 changed files with 11 additions and 1 deletions
|
|
@ -35,6 +35,7 @@ Notable changes to the `alacritty_terminal` crate are documented in its
|
|||
- Hint bindings not respecting IPC overrides
|
||||
- Search matching a wrapping fullwidth character in the last column
|
||||
- Crash when `AppleFontSmoothing` option is not present on macOS
|
||||
- Origin mode (DECOM) not moving cursor to the origin point
|
||||
|
||||
## 0.15.1
|
||||
|
||||
|
|
|
|||
|
|
@ -1979,7 +1979,10 @@ impl<T: EventListener> Handler for Term<T> {
|
|||
},
|
||||
NamedPrivateMode::AlternateScroll => self.mode.insert(TermMode::ALTERNATE_SCROLL),
|
||||
NamedPrivateMode::LineWrap => self.mode.insert(TermMode::LINE_WRAP),
|
||||
NamedPrivateMode::Origin => self.mode.insert(TermMode::ORIGIN),
|
||||
NamedPrivateMode::Origin => {
|
||||
self.mode.insert(TermMode::ORIGIN);
|
||||
self.goto(0, 0);
|
||||
},
|
||||
NamedPrivateMode::ColumnMode => self.deccolm(),
|
||||
NamedPrivateMode::BlinkingCursor => {
|
||||
let style = self.cursor_style.get_or_insert(self.config.default_cursor_style);
|
||||
|
|
|
|||
|
|
@ -72,6 +72,7 @@ ref_tests! {
|
|||
zsh_tab_completion
|
||||
erase_in_line
|
||||
scroll_in_region_up_preserves_history
|
||||
origin_goto
|
||||
}
|
||||
|
||||
fn read_u8<P>(path: P) -> Vec<u8>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,2 @@
|
|||
[1m[7m%[27m[1m[0m
[0m[27m[24m[J[38;5;0;48;5;9m UL [0m[38;5;7;48;5;8m ~/programming/alacritty/alacritty [0m[38;5;0;48;5;9m origin_mode ↑ [0m [K
[0m[27m[24m[J[38;5;0;48;5;9m UL [0m[38;5;7;48;5;8m ~/programming/alacritty/alacritty [0m[38;5;0;48;5;9m origin_mode ↑ [0m [K[?2004hprintf "\e[2J\e[?6hHere"[?2004l
|
||||
[2J[?6hHere[1m[7m%[27m[1m[0m
[0m[27m[24m[J[38;5;0;48;5;9m UL [0m[38;5;7;48;5;8m ~/programming/alacritty/alacritty [0m[38;5;0;48;5;9m origin_mode ↑ [0m [K
[0m[27m[24m[J[38;5;0;48;5;9m UL [0m[38;5;7;48;5;8m ~/programming/alacritty/alacritty [0m[38;5;0;48;5;9m origin_mode ↑ [0m [K[?2004h
|
||||
1
alacritty_terminal/tests/ref/origin_goto/config.json
Normal file
1
alacritty_terminal/tests/ref/origin_goto/config.json
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"history_size":0}
|
||||
1
alacritty_terminal/tests/ref/origin_goto/grid.json
Normal file
1
alacritty_terminal/tests/ref/origin_goto/grid.json
Normal file
File diff suppressed because one or more lines are too long
1
alacritty_terminal/tests/ref/origin_goto/size.json
Normal file
1
alacritty_terminal/tests/ref/origin_goto/size.json
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"columns":114,"screen_lines":37}
|
||||
Loading…
Add table
Add a link
Reference in a new issue