From 5e33325f9a36bd5acb6726c1243a0e46d6623dbc Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Sun, 3 Jul 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 b9ce1a12..c7515bd6 100644 --- a/top/top.c +++ b/top/top.c @@ -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