You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am a bit new to golang so I am not sure how will it be possible to detect if the user is using Windows terminal instead of the cmd.
Windows terminal does support RGB, when using WSL I can use the colours from RGBToAttribute, but when I am using PowerShell it detects that I am using Windows so it outputs normal mode instead.
In WSL:
In PowerShell:
I want to achieve the same behaviour to get more control over colours.
This is the code I wrote for this behaviour:
// ... code// setting tabs as '·' rune and using the a dark gray as foregroundtermbox.SetCell(col, row, rune('·'), termbox.RGBToAttribute(62, 64, 66), termbox.ColorDefault)
// ...// setting the output mode to RGB in the main looptermbox.SetOutputMode(termbox.OutputRGB)
//...
The text was updated successfully, but these errors were encountered:
I am a bit new to golang so I am not sure how will it be possible to detect if the user is using Windows terminal instead of the cmd.
Windows terminal does support RGB, when using WSL I can use the colours from RGBToAttribute, but when I am using PowerShell it detects that I am using Windows so it outputs normal mode instead.
In WSL:
In PowerShell:
I want to achieve the same behaviour to get more control over colours.
This is the code I wrote for this behaviour:
The text was updated successfully, but these errors were encountered: