Skip to content

Commit

Permalink
fix(ansi): kitty: remove SetKittyKeyboard
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Aug 14, 2024
1 parent 759c05a commit d72bfb0
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions ansi/kitty.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ const RequestKittyKeyboard = "\x1b[?u"
//
// Possible values for flags mask:
//
// 0: Disable all features
// 1: Disambiguate escape codes
// 2: Report event types
// 4: Report alternate keys
Expand All @@ -45,27 +44,18 @@ func KittyKeyboard(flags, mode int) string {
return "\x1b[=" + strconv.Itoa(flags) + ";" + strconv.Itoa(mode) + "u"
}

// SetKittyKeyboard returns a sequence to set the terminal Kitty keyboard
// enhancement flags.
//
// To disable all features, use [DisableKittyKeyboard].
// PushKittyKeyboard returns a sequence to push the given flags to the terminal
// Kitty Keyboard stack.
//
// Possible values for flags mask:
//
// 0: Disable all features
// 1: Disambiguate escape codes
// 2: Report event types
// 4: Report alternate keys
// 8: Report all keys as escape codes
// 16: Report associated text
//
// This is equivalent to KittyKeyboard(flags, 1).
func SetKittyKeyboard(flags int) string {
return KittyKeyboard(flags, 1)
}

// PushKittyKeyboard returns a sequence to push the given flags to the terminal
// Kitty Keyboard stack.
//
// CSI > flags u
//
// See https://sw.kovidgoyal.net/kitty/keyboard-protocol/#progressive-enhancement
Expand Down

0 comments on commit d72bfb0

Please sign in to comment.