version 1.64, 2007/11/27 13:19:16 |
version 1.65, 2007/11/29 10:06:30 |
|
|
ptr = tempbuf; |
ptr = tempbuf; |
if ((i = atoiwi(ptr)) != Invalid) { |
if ((i = atoiwi(ptr)) != Invalid) { |
if (i > max_topn) { |
if (i > max_topn) { |
new_message(MT_standout | MT_delayed, |
new_message(MT_standout | |
|
MT_delayed, |
" This terminal can only " |
" This terminal can only " |
"display %d processes.", |
"display %d processes.", |
max_topn); |
max_topn); |
putr(); |
putr(); |
} else if (i == 0) |
} |
display_header(No); |
if ((i > topn || i == Infinity) |
else if ((i > topn || i == Infinity) |
|
&& topn == 0) { |
&& topn == 0) { |
/* redraw the header */ |
/* redraw the header */ |
display_header(Yes); |
display_header(Yes); |
} |
} else if (i == 0) |
|
display_header(No); |
topn = i; |
topn = i; |
} else { |
} else { |
new_message(MT_standout, |
new_message(MT_standout, |
"Processes should be a non-negative number"); |
"Processes should be a " |
|
"non-negative number"); |
putr(); |
putr(); |
no_command = Yes; |
no_command = Yes; |
} |
} |