added DECCOLM support

This commit is contained in:
Roman Shevchenko 2019-01-11 15:34:40 +00:00
parent d9f9331baa
commit 6deec4d3c7
1 changed files with 10 additions and 0 deletions

View File

@ -31,6 +31,16 @@ func csiSetMode(modeStr string, enabled bool, terminal *Terminal) error {
}
case "?1":
terminal.modes.ApplicationCursorKeys = enabled
case "?3":
_, lines := terminal.GetSize()
if enabled {
// DECCOLM - COLumn mode, 132 characters per line
terminal.SetSize(132, uint(lines))
} else {
// DECCOLM - 80 characters per line (erases screen)
terminal.SetSize(80, uint(lines))
terminal.Clear()
}
case "?7":
// auto-wrap mode
//DECAWM