Similar Posts

Subscribe
Notify of
3 Answers
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Erzesel
1 year ago

If a string does not fit into a console window. it is automatically reversed (depending on the font size and window settings).

I used to color two lines to see what’s happening.

This looks like this:

Console wide enough…

Console to narrow…

You see the lines are broken

From a PythonScript, you can choose the size of your ConsolFenstes by cmd command Fashion set.

import os
cmd = 'mode 150, 40'
os.system(cmd)

In general, however, it should be ensured that no string for the console is longer than 80 or 123 characters. This ensures that one line also works in a native console-based operating system. (e.g. native Linux distros for control computers)

Tomatenveteran
1 year ago

Sign coding correctly implemented? Set of characters? Terminal size?