diff options
-rw-r--r-- | usr.bin/systat/main.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/usr.bin/systat/main.c b/usr.bin/systat/main.c index c78493daa09..2017def8fb3 100644 --- a/usr.bin/systat/main.c +++ b/usr.bin/systat/main.c @@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.44 2008/08/13 06:20:48 jmc Exp $ */ +/* $Id: main.c,v 1.45 2008/10/31 06:06:46 canacar Exp $ */ /* * Copyright (c) 2001, 2007 Can Erkin Acar * Copyright (c) 2001 Daniel Hartmeier @@ -213,6 +213,17 @@ usage() exit(1); } +void +show_view(void) +{ + if (rawmode) + return; + + tb_start(); + tbprintf("%s %g", curr_view->name, naptime); + tb_end(); + message_set(tmp_buf); +} void add_view_tb(field_view *v) @@ -339,6 +350,10 @@ keyboard_callback(int ch) show_help(); need_update = 1; break; + case CTRL_G: + show_view(); + need_update = 1; + break; case 'l': command_set(&cm_count, NULL); break; |