Skip to content

Use a truecolor terminal shell by default#6

Open
afbjorklund wants to merge 1 commit intowuchihsu:mainfrom
afbjorklund:color
Open

Use a truecolor terminal shell by default#6
afbjorklund wants to merge 1 commit intowuchihsu:mainfrom
afbjorklund:color

Conversation

@afbjorklund
Copy link
Contributor

@afbjorklund afbjorklund commented Nov 16, 2022

Like so:

lolcat

See https://github.com/busyloop/lolcat for demo (or charm.sh)

Closes #5

@afbjorklund
Copy link
Contributor Author

BTW; it can also do emojis... Just have to output the unicode for it:

emojis

Like so: https://github.com/JessTaDa/display-emoji-in-terminal-ruby

defer c.sessIn.Close()

if err := c.sess.RequestPty("xterm", wdSize.High, wdSize.Width, terminalModes); err != nil {
if err := c.sess.RequestPty("xterm-256color", wdSize.High, wdSize.Width, terminalModes); err != nil {
Copy link
Owner

Choose a reason for hiding this comment

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

Could we have a fallback to 'xterm'?

}
if err := c.sess.Setenv("COLORTERM", "truecolor"); err != nil {
log.Println("bridgeWSAndSSH: session.Setenv:", err)
return
Copy link
Owner

Choose a reason for hiding this comment

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

If it fails, could we log the warning but continue establishing the shell?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow using TERM=xterm-256color

2 participants