-
-
Notifications
You must be signed in to change notification settings - Fork 309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
inconsistent text styling #539
Comments
Yep. The problem is that the underlying terminals are not consistent in what they implement. This happens elsewhere too. There isn't really much I can do about it sadly. |
I am not sure if it's the terminal emulator at fault. Could it be related to the shell? @gdamore oh-my-posh seems to handle some inconsistencies according to the shell it's running on. I mention it cause all the four styles work fine with Oh My Posh on my machine. |
The shell is not responsible for rendering styles, the terminal emulator is (with some minor caveats on Windows, that is). The snippet linked from oh-my-posh is handling how the different shells evaluate the prompt escapes for non-printing characters, specifically that bash uses The reason why things 'just work' in oh-my-posh is that it assumes all of the extended ANSI escape codes are present and work. This actually works mostly fine in modern terminal emulators, since most have agreed to support a pretty good set of ANSI escapes, and windows conhost does as well (assuming it's enabled). Where these terminal emulators don't support an ANSI escape, they ignore it. When running bash (and linux shells in general), either in WSL or natively on linux, the The differences on conhost are interesting, but I'm pretty sure it boils down to the fact that on Windows things using conhost have to enable ANSI colors and styles, otherwise you get the old behavior prior to windows 10. Software that doesn't do this will behave differently than software that does, and you're at the mercy of whatever the program that created the console chose to do with it. One thing to check would be if you are getting a Ran across this because I was having difficulties with colors, but it turned out to be unrelated. |
I'm closing this, because it's really out of my control. |
I just put together a test file according to
tcell
's getting started guide for 4 text styles —italic
,bold
,blink
anddim
. And I found some inconsistencies in the outcomes.Here are the results:
blink
style worksblink
andbold
styles workbold
style doesn't workHere's the gist I used for testing:
https://gist.github.com/icy-comet/76cc7fdbb77f272c5653e533ddebdb63
The text was updated successfully, but these errors were encountered: