Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions mode.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ func modeDesc(mode int) string {
return "cursor keys"
case 25:
return "cursor visibility"
case 38:
return "tektronix mode"
case 1000:
return "show mouse"
case 1001:
Expand Down
4 changes: 4 additions & 0 deletions sgr.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ func handleSgr(parser *ansi.Parser) (string, error) { //nolint:unparam
str += fmt.Sprintf("Background color: %d", readColor(&i, parser.Params))
case 49:
str += "Default background color"
case 53:
str += "Overline"
case 55:
str += "No overline"
Comment on lines +92 to +95
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are not widely supported :/

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a sad thing. On the bright side, iTerm and VTE (and Konsole, and a couple others) do. Very handy for status lines.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even if they're not widely supported I can see them being useful, both from a completeness standpoint and for the sake of simply understanding what they are.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rbanffy It would be really helpful to implement these SGR arguments in x/ansi

case 58, 59:
str += fmt.Sprintf("Underline color: %d", readColor(&i, parser.Params))
case 90, 91, 92, 93, 94, 95, 96, 97:
Expand Down