1
0
Fork 0
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:
Christian Duerr 2025-07-24 23:57:22 +00:00 committed by GitHub
parent 376cdb3700
commit 9f8fed7c9e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 11 additions and 1 deletions

View file

@ -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

View file

@ -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);

View file

@ -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>

View file

@ -0,0 +1,2 @@
%  UL  ~/programming/alacritty/alacritty  origin_mode ↑    UL  ~/programming/alacritty/alacritty  origin_mode ↑  [?2004hprintf "\e[2J\e[?6hHere"[?2004l
[?6hHere%  UL  ~/programming/alacritty/alacritty  origin_mode ↑    UL  ~/programming/alacritty/alacritty  origin_mode ↑  [?2004h

View file

@ -0,0 +1 @@
{"history_size":0}

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
{"columns":114,"screen_lines":37}