bcpierce00 / unison

Unison file synchronizer
GNU General Public License v3.0
4.01k stars 227 forks source link

Increase max length of status messages in uitext #883

Closed tleedjarv closed 1 year ago

tleedjarv commented 1 year ago

Based on some discussion in #396, and considering that any bigger changes are realistically not going to happen quickly, I propose this intermediate solution. (Temporary things that become permanent, you know the story...) It is not a solution to #396, just to one bit of it.

What's in this patch?

With VT100 terminal emulators we can control automatic line wrapping mode per line, and this is exactly what this patch does for the status line while scanning updates. By disabling line wrapping, the length cap (currently at 70) can be removed. Instead, status lines will be chopped off beyond the width of terminal.

This is supposed to work on all proper VT100 emulators (more info in commit message). For some, I've explicitly disabled this function; for others, very long status lines will wrap and be half-overwritten by the next. This may cause ugly output but is not harmful in any other way.