Start work on porting hints kitten to Go

This commit is contained in:
Kovid Goyal
2023-03-08 20:06:26 +05:30
parent bcd3802d3e
commit 09ceb3c0be
12 changed files with 523 additions and 12 deletions

View File

@@ -7,6 +7,7 @@ import (
"fmt"
"os"
"kitty/tools/cli"
"kitty/tools/utils"
"github.com/jamesruan/go-rfc1924/base85"
@@ -37,3 +38,9 @@ func KittenOutputSerializer() func(any) (string, error) {
return utils.UnsafeBytesToString(data), nil
}
}
func ReportError(err error) {
cli.ShowError(err)
os.Stdout.WriteString("\x1bP@kitty-overlay-ready|\x1b\\")
HoldTillEnter(false)
}