mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-11 18:32:12 +02:00
Convenient loop API to print styled strings
This commit is contained in:
@@ -33,6 +33,8 @@ func new_loop() *Loop {
|
||||
l.escape_code_parser.HandlePM = l.handle_pm
|
||||
l.escape_code_parser.HandleRune = l.handle_rune
|
||||
l.escape_code_parser.HandleEndOfBracketedPaste = l.handle_end_of_bracketed_paste
|
||||
l.style_cache = make(map[string]func(...any) string)
|
||||
l.style_ctx.AllowEscapeCodes = true
|
||||
return &l
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user