top: improved that #define PRETENDNOCAP implementation

This development (only) define can be used to turn top
into a simple text program, disabling termcap effects.
But input (at screen bottom) suffers from a line wrap.

So, this commit just makes the input prompt processing
a little more effective by adding one leading newline.

Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
Jim Warner 2016-07-03 00:00:00 -05:00 committed by Craig Small
parent 19f0ae79bc
commit 5e33325f9a

View File

@ -752,7 +752,11 @@ static void show_msg (const char *str) {
static int show_pmt (const char *str) {
int rc;
#ifdef PRETENDNOCAP
PUTT("\n%s%s%.*s %s%s%s"
#else
PUTT("%s%s%.*s %s%s%s"
#endif
, tg2(0, Msg_row)
, Curwin->capclr_pmt
, Screen_cols - 2