mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-18 13:55:23 -05:00
Implement CNL and CPL escape codes (#1590)
This commit is contained in:
parent
2ef376bb72
commit
94b9345a26
2 changed files with 7 additions and 2 deletions
|
@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
- Add support for changing the colors from 16 to 256 in the `indexed_colors` config section
|
||||
- Add `save_to_clipboard` configuration option for copying selected text to the system clipboard
|
||||
- New terminfo entry, `alacritty-direct`, that advertises 24-bit color support
|
||||
- Add support for CSI sequences Cursor Next Line (`\e[nE`) and Cursor Previous Line (`\e[nF`)
|
||||
|
||||
### Changed
|
||||
|
||||
|
|
|
@ -1467,12 +1467,16 @@ impl ansi::Handler for Term {
|
|||
|
||||
#[inline]
|
||||
fn move_down_and_cr(&mut self, lines: Line) {
|
||||
trace!("[unimplemented] move_down_and_cr: {}", lines);
|
||||
trace!("move_down_and_cr: {}", lines);
|
||||
let move_to = self.cursor.point.line + lines;
|
||||
self.goto(move_to, Column(0))
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn move_up_and_cr(&mut self, lines: Line) {
|
||||
trace!("[unimplemented] move_up_and_cr: {}", lines);
|
||||
trace!("move_up_and_cr: {}", lines);
|
||||
let move_to = Line(self.cursor.point.line.0.saturating_sub(lines.0));
|
||||
self.goto(move_to, Column(0))
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
|
Loading…
Reference in a new issue