From f4fcfe39723cf9287acf4a9f9c6b7e4ee774a3dc Mon Sep 17 00:00:00 2001 From: Can Erkin Acar Date: Fri, 31 Oct 2008 06:06:47 +0000 Subject: make ^G display the current view and refresh interval as documented. --- usr.bin/systat/main.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'usr.bin') 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; -- cgit v1.2.3