Move escape code parser into wcswidth package

This commit is contained in:
Kovid Goyal
2022-11-14 15:41:50 +05:30
parent 9be2247081
commit 7280c712d6
6 changed files with 30 additions and 27 deletions
+2 -1
View File
@@ -20,6 +20,7 @@ import (
"kitty/tools/tty"
"kitty/tools/tui"
"kitty/tools/utils"
"kitty/tools/wcswidth"
)
var ProtocolVersion [3]int = [3]int{0, 20, 0}
@@ -127,7 +128,7 @@ func do_io(device IOAbstraction, input utils.Reader, no_response bool, response_
return nil
}
var p utils.EscapeCodeParser = utils.EscapeCodeParser{HandleDCS: handle_dcs}
var p = wcswidth.EscapeCodeParser{HandleDCS: handle_dcs}
buf := make([]byte, 0, utils.DEFAULT_IO_BUFFER_SIZE)
for !response_received {