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 searched through the code but couldn't find a way to retrieve the default background/foreground colors of the terminal. At the same time, for Windows, as I understand, the colors are defined -
@gnodet Yes, I tried. It returns palette from which you can get concrete color by index. But I didn't a way to find out the index of the foreground color and the index of the background color.
This way is very Windows specific. On XTerm, it can be retrieved using echo "\033]10;?\033\\" and echo "\033]11;?\033\\".
A single API to support both from the Palette would be needed somehow.
I searched through the code but couldn't find a way to retrieve the default background/foreground colors of the terminal. At the same time, for Windows, as I understand, the colors are defined -
jline3/terminal-jna/src/main/java/org/jline/terminal/impl/jna/win/WindowsAnsiWriter.java
Line 90 in 46bd37d
That's why I suggest to add this feature.
The text was updated successfully, but these errors were encountered: