Skip to content

Commit 5fbf78c

Browse files
FIX: avoid kitty keyboard protocol being confused for RSC
1 parent 20c4a41 commit 5fbf78c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Sources/SwiftTerm/Terminal.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2300,6 +2300,11 @@ open class Terminal {
23002300

23012301
func cmdRestoreCursor (_ pars: [Int], _ collect: cstring)
23022302
{
2303+
// avoid kitty keyboard protocol
2304+
if pars.count > 0 {
2305+
return
2306+
}
2307+
23032308
buffer.x = buffer.savedX
23042309
buffer.y = buffer.savedY
23052310
curAttr = buffer.savedAttr

0 commit comments

Comments
 (0)