#996671 wavemon: Width of printed text overwrites borders, next line

Package:
wavemon
Source:
wavemon
Description:
Wireless Device Monitoring Application
Submitter:
Date:
2021-10-17 06:45:03 UTC
Severity:
normal
Tags:
#996671#5
Date:
2021-10-17 06:43:56 UTC
From:
To:
Dear Maintainer,

Despite what the NEWS file says, Wavemon does not actually use the
curtail() function it defines to prevent long lines from spilling into
the next line. While this is noticeable mostly on the rx/tx rate line
-- which can be extremely long -- almost all printed lines will show
the bug when the terminal is resized to a narrower width.

I've included a patch which creates a new wrapper for waddstr() called
border_waddstr() which first checks if the text would overwrite the
border on the right side and then truncates the string to be precisely
the right size. Truncation is done using the curtail() function which
puts a ~ in the middle of the line to represent elision.

Additionally, I've split Rx rate and Tx rate onto separate lines as
each one is plenty long on its own.

*** End of the template - remove these template lines ***