=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/top/top.c,v retrieving revision 1.64 retrieving revision 1.65 diff -c -r1.64 -r1.65 *** src/usr.bin/top/top.c 2007/11/27 13:19:16 1.64 --- src/usr.bin/top/top.c 2007/11/29 10:06:30 1.65 *************** *** 1,4 **** ! /* $OpenBSD: top.c,v 1.64 2007/11/27 13:19:16 otto Exp $ */ /* * Top users/processes display for Unix --- 1,4 ---- ! /* $OpenBSD: top.c,v 1.65 2007/11/29 10:06:30 otto Exp $ */ /* * Top users/processes display for Unix *************** *** 664,685 **** ptr = tempbuf; if ((i = atoiwi(ptr)) != Invalid) { if (i > max_topn) { ! new_message(MT_standout | MT_delayed, " This terminal can only " "display %d processes.", max_topn); putr(); ! } else if (i == 0) ! display_header(No); ! else if ((i > topn || i == Infinity) && topn == 0) { /* redraw the header */ display_header(Yes); ! } topn = i; } else { new_message(MT_standout, ! "Processes should be a non-negative number"); putr(); no_command = Yes; } --- 664,687 ---- ptr = tempbuf; if ((i = atoiwi(ptr)) != Invalid) { if (i > max_topn) { ! new_message(MT_standout | ! MT_delayed, " This terminal can only " "display %d processes.", max_topn); putr(); ! } ! if ((i > topn || i == Infinity) && topn == 0) { /* redraw the header */ display_header(Yes); ! } else if (i == 0) ! display_header(No); topn = i; } else { new_message(MT_standout, ! "Processes should be a " ! "non-negative number"); putr(); no_command = Yes; }