version 1.3, 1996/06/26 05:40:08 |
version 1.4, 1997/12/19 09:03:32 |
|
|
showmbufs() |
showmbufs() |
{ |
{ |
register int i, j, max, index; |
register int i, j, max, index; |
char buf[10]; |
char buf[13]; |
|
|
if (mb == 0) |
if (mb == 0) |
return; |
return; |
|
|
mvwprintw(wnd, 1+j, 0, "%-10.10s", mtnames[index]); |
mvwprintw(wnd, 1+j, 0, "%-10.10s", mtnames[index]); |
wmove(wnd, 1 + j, 10); |
wmove(wnd, 1 + j, 10); |
if (max > 60) { |
if (max > 60) { |
sprintf(buf, " %d", max); |
snprintf(buf, sizeof buf, " %d", max); |
max = 60; |
max = 60; |
while (max--) |
while (max--) |
waddch(wnd, 'X'); |
waddch(wnd, 'X'); |