View | Details | Raw Unified | Return to bug 233667 | Differences between
and this patch

Collapse All | Expand All

(-)usr.bin/top/top.c (+9 lines)
Lines 985-990 Link Here
985
				break;
985
				break;
986
			    case CMD_viewtog:
986
			    case CMD_viewtog:
987
				displaymode = displaymode == DISP_IO ? DISP_CPU : DISP_IO;
987
				displaymode = displaymode == DISP_IO ? DISP_CPU : DISP_IO;
988
				new_message(MT_standout | MT_delayed,
989
				    " Displaying %s stats",
990
				    displaymode == DISP_IO ? "IO" : "CPU");
988
				header_text = format_header(uname_field);
991
				header_text = format_header(uname_field);
989
				display_header(true);
992
				display_header(true);
990
				d_header = i_header;
993
				d_header = i_header;
Lines 992-1000 Link Here
992
				break;
995
				break;
993
			    case CMD_viewsys:
996
			    case CMD_viewsys:
994
				ps.system = !ps.system;
997
				ps.system = !ps.system;
998
				new_message(MT_standout | MT_delayed,
999
				    " %sisplaying system processes",
1000
				    ps.system ? "D" : "Not d");
995
				break;
1001
				break;
996
			    case CMD_showargs:
1002
			    case CMD_showargs:
997
				fmt_flags ^= FMT_SHOWARGS;
1003
				fmt_flags ^= FMT_SHOWARGS;
1004
				new_message(MT_standout | MT_delayed,
1005
				    " %sisplaying process args",
1006
				    fmt_flags & FMT_SHOWARGS ? "D" : "Not d");
998
				break;
1007
				break;
999
			    case CMD_order:
1008
			    case CMD_order:
1000
				new_message(MT_standout,
1009
				new_message(MT_standout,

Return to bug 233667