Move basic multi key shortcut handling into its own package

This commit is contained in:
Kovid Goyal
2022-11-08 21:45:01 +05:30
parent 388e47a2df
commit f919efcd42
4 changed files with 213 additions and 126 deletions

View File

@@ -17,7 +17,7 @@ var _ = fmt.Print
const ST = "\x1b\\"
const PROMPT_MARK = "\x1b]133;"
type SyntaxHighlightFunction func(text string, x, y int) string
type SyntaxHighlightFunction = func(text string, x, y int) string
type RlInit struct {
Prompt string