Skip to content

Commit

Permalink
feat: use kitty report alternate keys with enhanced keyboard
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Aug 30, 2024
1 parent 2f6637b commit 3faa9b3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions options.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,11 +265,13 @@ func WithReportFocus() ProgramOption {
// keyboard sequences. This might also enable reporting of release key events
// depending on the terminal emulator supporting it.
//
// This is a syntactic sugar for WithKittyKeyboard(3) and WithXtermModifyOtherKeys(1).
// This is a syntactic sugar for WithKittyKeyboard(7) and WithXtermModifyOtherKeys(1).
func WithEnhancedKeyboard() ProgramOption {
return func(p *Program) {
_WithKittyKeyboard(ansi.KittyDisambiguateEscapeCodes |
ansi.KittyReportEventTypes)(p)
ansi.KittyReportEventTypes |
ansi.KittyReportAlternateKeys,
)(p)
_WithModifyOtherKeys(1)(p)
}
}
Expand Down

0 comments on commit 3faa9b3

Please sign in to comment.