We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I print(str.encode(screen.display[0])), it seems like color is not encoded.
print(str.encode(screen.display[0]))
The text was updated successfully, but these errors were encountered:
Color is encoded in Char_s inside of Screen and are not returned by Screen.display
Sorry, something went wrong.
Nope, Screen.display returns a plain styleless text. To get the details of each characters, including their colors you have to query each character:
Screen.display
for y in range(screen.lines): line = screen.buffer[y] for x in range(screen.columns): char = line[x] print(char.fg, char.bg) # foreground/background colors
No branches or pull requests
When I
print(str.encode(screen.display[0]))
, it seems like color is not encoded.The text was updated successfully, but these errors were encountered: