wezterm: recognize MS terminal mode 25 for cursor visibility
This commit is contained in:
1 parent
61e3545c68
commit
5b700e4d5d
2 files changed
+9
No files matched your search
@@ -1150,6 +1150,12 @@ impl TerminalState {
|
||||
Mode::ResetDecPrivateMode(DecPrivateMode::Code(DecPrivateModeCode::ShowCursor)) => {
|
||||
self.cursor_visible = false;
|
||||
}
|
||||
Mode::SetMode(TerminalMode::Code(TerminalModeCode::ShowCursor)) => {
|
||||
self.cursor_visible = true;
|
||||
}
|
||||
Mode::ResetMode(TerminalMode::Code(TerminalModeCode::ShowCursor)) => {
|
||||
self.cursor_visible = false;
|
||||
}
|
||||
|
||||
Mode::SetDecPrivateMode(DecPrivateMode::Code(DecPrivateModeCode::MouseTracking))
|
||||
| Mode::ResetDecPrivateMode(DecPrivateMode::Code(DecPrivateModeCode::MouseTracking)) => {
|
||||
|
||||
@@ -505,9 +505,12 @@ pub enum TerminalModeCode {
|
||||
/// https://vt100.net/docs/vt510-rm/IRM.html
|
||||
Insert = 4,
|
||||
/// https://vt100.net/docs/vt510-rm/SRM.html
|
||||
/// But in the MS terminal this is cursor blinking.
|
||||
SendReceive = 12,
|
||||
/// https://vt100.net/docs/vt510-rm/LNM.html
|
||||
AutomaticNewline = 20,
|
||||
/// MS terminal cursor visibility
|
||||
ShowCursor = 25,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
|
||||
Reference in new issue
Block a user