Commit Graph

3 Commits

Author SHA1 Message Date
Qi Xiao
89d95c17a6 pkg/ui: Do not strip unprintable characters from the prompt.
This will preserve private use characters that are sometimes used by icon fonts.
Control characters are already escaped by cli/term.Writer.
2020-08-28 22:00:40 +01:00
Qi Xiao
5e648ceac7 pkg/ui: Implement ParseSGREscapedText.
Part of a reimplementation of #1038.
2020-08-25 22:47:22 +01:00
Qi Xiao
b6adbed317 pkg/ui: Implement StyleFromSGR in terms of a new StylingFromSGR.
Part of a reimplementation of #1038.
2020-08-25 21:17:14 +01:00