bcpierce00 / unison

Unison file synchronizer
GNU General Public License v3.0
3.9k stars 225 forks source link

Improve the TUI output when interrupted #927

Closed tleedjarv closed 1 year ago

tleedjarv commented 1 year ago

Do not repeat the currently active status line after all other output, which is not only confusing but also causes the last newline to be omitted.

Output before this change (interrupted during a scan):

Looking for changes
Terminated!
\ path1/subdir2sh$ _

(underscore denotes position of cursor) Notice anything weird?

Output with this change (interrupted during a scan):

Looking for changes
/ path1/subdir2
Terminated!
sh$ _

Works the same when interrupted during update propagation but I haven't tested it specifically.