From 5ce94f9bb07fdd34a78bff85a4c98277058dc610 Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Wed, 15 Jun 2016 00:00:00 -0500 Subject: [PATCH] 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 --- top/top.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/top/top.c b/top/top.c index 1c58b0a6..db321b26 100644 --- a/top/top.c +++ b/top/top.c @@ -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