mirror of
https://github.com/alacritty/alacritty.git
synced 2026-12-02 17:52:05 +03:00
Add support for cursor shape escape sequence
This commit is contained in:
1 parent
18f6a7814a
commit
4ae2bc66f2
1 file changed
+15
+15
@@ -814,6 +814,21 @@ impl<'a, H, W> vte::Perform for Performer<'a, H, W>
|
||||
unhandled(params);
|
||||
}
|
||||
|
||||
// Set cursor style
|
||||
b"50" => {
|
||||
if params.len() >= 2 && params[1].len() >= 13 && params[1][0..12] == *b"CursorShape=" {
|
||||
let style = match params[1][12] as char {
|
||||
'0' => CursorStyle::Block,
|
||||
'1' => CursorStyle::Beam,
|
||||
'2' => CursorStyle::Underline,
|
||||
_ => return unhandled(params),
|
||||
};
|
||||
self.handler.set_cursor_style(Some(style));
|
||||
return;
|
||||
}
|
||||
unhandled(params);
|
||||
}
|
||||
|
||||
// Set clipboard
|
||||
b"52" => {
|
||||
if params.len() < 3 {
|
||||
|
||||
Reference in new issue
Block a user