wardi / speedometer

Chart network TX/RX and file download rates on the console
http://excess.org/speedometer/
GNU Lesser General Public License v2.1
217 stars 53 forks source link

Graphs on the Linux console think symbols from ▁ to █ and ⎺ to ⎽ are available. #29

Open rbanffy opened 11 months ago

rbanffy commented 11 months ago

There doesn't seem to be a way to use the Urwid-based graphs on the Linux console, even though Urwid supports sticking to the console-friendly set (by not setting smooth in the bar graph's satt parameter).

Maybe checking whether TERM is 'linux' (on https://github.com/wardi/speedometer/blob/master/speedometer.py#L1101) would suffice (for Linux, at least).

This happens because the locale is set to UTF-8 and that setting is still present in the console, even though the console can only display the first page of the Unicode space. My "Sextant" fonts in Urwid also fail badly on the console for the same reasons. :-(