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-06-15 00:00:00 -05:00 committed by Craig Small
parent 4a0e974b7f
commit 5ce94f9bb0

View File

@ -579,7 +579,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