I am working on a python program with a text-mode GUI based on urwid. urwid is a library to create ncurses-style programs with python.
Operating System is CentOS 7.
Everything works fine under 'normal' conditions (X-Server, terminal window). However, on a linux console without X-Server, urwid switches to a low-color mode. (With wrong color codes on certain machines, I get annoyingly blinking text than)
The funny point is, still using linux console, I just need to start screen as a workaround. Inside screen everything is fine again. Without having any special configuration for screen.
I already tried to compare a lot of environment information between pure text shell and screen shell, but that didn't help. For example, locale is identical, pythons sys.stdout.encoding is the same, doing ":runtime syntax/colortest.vim" in vim looks correct and colorful in both cases.