Tomas-M / iotop

A top utility for IO
Other
376 stars 50 forks source link

view_curses: do not force black background #29

Closed amonakov closed 2 years ago

amonakov commented 2 years ago

Without a call to use_default_colors, ncurses will assume that color 0 (usually black) is the same as the background color of the terminal.

This assumption is not necessarily true, the user might be running a terminal with any background (even white or a light color) while the color palette has black at index 0.

To avoid overriding the background color for the entire window without a good reason, invoke use_default_colors after start_color.

bbonev commented 2 years ago

Thanks for the improvement!