Open yurivict opened 1 year ago
For the first two, it looks like colors for vt220 on might be set for 24bit color, though I can't reproduce it. I think we picked that one expecting it shouldn't have color, so I wonder if we should mock it or try xterm-mono? I assume it's not the COLORTERM
environment variable bleeding through since that would break earlier.
@yurivict, can you check this on your system?
>>> from blessed import Terminal
>>> term = Terminal(kind='vt220')
>>> term.number_of_colors
0
For the second two, it looks like move_right()
(cuf
) isn't working correctly on linux and ansi terminal on FreeBSD. When we test it move_right()
we don't assume the terminals support it, so maybe we shouldn't assume it here.
Put in a fix for the second two in the #255. It basically just gates that specific assert if move_right()
produces an empty string.
Wondering if we should gate the number_of_colors
issues as well. It would basically require checking COLORTERM
and curses.tigetnum('colors')
. But I'm hesitant to try anything since I can't reproduce the issue and @yurivict hasn't responded. It would be good to know which one is causing it.
Version: 1.20.0 Python-3.9 FreeBSD 13.1