diff options
author | Can Erkin Acar <canacar@cvs.openbsd.org> | 2008-10-31 06:06:47 +0000 |
---|---|---|
committer | Can Erkin Acar <canacar@cvs.openbsd.org> | 2008-10-31 06:06:47 +0000 |
commit | f4fcfe39723cf9287acf4a9f9c6b7e4ee774a3dc (patch) | |
tree | 921d837371eacfc2e5085923ba009ce44c69c25e /usr.bin/systat/main.c | |
parent | b8538b7800104ea39fddfc4d633fd94b9edfdedd (diff) |
make ^G display the current view and refresh interval as documented.
Diffstat (limited to 'usr.bin/systat/main.c')
-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; |