Home | History | Annotate | Download | only in systat
History log of /src/usr.bin/systat/keyboard.c
RevisionDateAuthorComments
 1.26  23-Aug-2015  mrg if you change display types, the "Showing %s, refresh every %d seconds."
message is retained, and you can't get rid of it. since it's dispalyed
in inverse, it feels like there's always an error happening (which is
really what the code has -- the above string is displayed via the error()
function.) for several types of key press that largely are just "redraw"
operation (space, ^L, etc.), clear the error string as well.
 1.25  14-Oct-2013  bad No David, '\?' is not the del character. Broken in rev 1.21.
XXX pullup-5, pullup-6.
 1.24  31-Dec-2007  christos branches: 1.24.10; 1.24.26; 1.24.28; 1.24.32;
don't call curses from a signal handler!
 1.23  10-May-2006  mrg branches: 1.23.6; 1.23.8; 1.23.12;
quell GCC 4.1 uninitialised variable warnings.

XXX: we should audit the tree for which old ones are no longer needed
after getting the older compilers out of the tree..
 1.22  26-Feb-2005  dsl WARNS=3
 1.21  26-Feb-2005  dsl Always treat ^h and ^? as erase chars (as well as stty erase).
Make the ':' erasable.
Fix typo in unviewable help message.
No point in having 'else' after 'return'...
 1.20  04-Nov-2004  dsl Add (unsigned char) cast to ctype functions
Although, IIRC, there is another PR on all commands being converted to
lower case.
 1.19  03-Jul-2004  mycroft Whoops, make "all" work again.
 1.18  03-Jul-2004  mycroft Using timeout() to control refresh gets rid of a whole pile of signal-related
lossage.
Making ungetch() signal-safe, as ncurses seems to, would be better, though.
 1.17  03-Jul-2004  mycroft Use KEY_RESIZE. Might as well have something in our source tree that does.
 1.16  27-Mar-2004  martin A __attribute__((__noreturn__)) function better be void - gcc correctly
complains at >= -O3 otherwise.
 1.15  12-Sep-2003  mycroft Allow lower case 'q' to quit.
 1.14  07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.
 1.13  01-Dec-2000  simonb Remove extern variables and functions now declared in dkstats.h.
While here, remove 77 (!) unneed #includes.
 1.12  05-Jul-2000  ad - Add `boot', `run', `time' and `zero' commands to all IP displays. These work
as in the `vmstat' display mode. The default mode is now `time', not `boot'.
- ANSIfy.
- s@kre\(@vmstat\(@.
- __RCSID() police.
- Tweak inet.icmp display visual a little.
 1.11  11-Apr-2000  jwise branches: 1.11.4;
Two UI changes:

a.) restore the capability to enter a substring of a mode or command
name. Pointed out by Soren Jorvang.

b.) (capital) Q now exits systat immediately
 1.10  20-Dec-1999  jwise Fix error handling throughout. First off, it is not true as claimed in swap.c
that `systat doesn't handle errors'. Second off, errx should not be used directly, since
the terminal should be cleaned up before bailing. Third off, whatever we do we need
to be consistent.

There, I feel better now.
 1.9  20-Dec-1999  jwise Be consistent about whether to block SIGALRM before calling command() -- don't
ever do so, as the first thing command() does is block SIGALRM.
 1.8  20-Dec-1999  jwise 1.) Clean up keystroke processing
2.) Add the all-time most requested feature: hitting space or CR while
not in command mode now causes an instant refresh
 1.7  15-Nov-1999  simonb - Add `bufcache' display which shows buffer cache usage per filesystem,
ala the monitor(1) command for Ultrix.
- Allow `h' or `?' to show the command list (same as `:help').
- Sort commands in cmdtab.c and systat.1
 1.6  02-Aug-1999  sommerfeld branches: 1.6.4;
Fix from PR7655: translation of keyboard command in systat is Wrong.
(breaks netstat's :ignore command for upper-case service names)
 1.5  12-Jul-1998  mrg branches: 1.5.2;
- KNF
- use snprintf
- don't overwrite the keyboard buffer (and make this sized on
the window size).
 1.4  21-Jul-1997  mrg - some KNF.
- use __RCSID().
- WARNS=1
 1.3  13-Dec-1996  scottr Freshen up a bit:

- Replace deprecated sigblock() with sigprocmask()
- Redraw the current display if SIGWINCH is caught
- Style police
 1.2  20-Jan-1995  jtc Changed to conform to NetBSD's new RCS Id convention.
 1.1  20-Jan-1995  jtc branches: 1.1.1;
Initial revision
 1.1.1.1  20-Jan-1995  jtc imported from 44lite
 1.5.2.1  26-Sep-1999  he Pull up revision 1.6 (requested by he):
Do not downcase input, which prevented "ignore X11" in the
"netstat" display from working. Fixes PR#7655.
 1.6.4.1  27-Dec-1999  wrstuden Pull up to last week's -current.
 1.11.4.1  01-Sep-2000  ad Pull up the following revisions, approved by releng-1-5:

- Add "boot", "run", "time" and "zero" commands to all IP displays. These work
as in the "vmstat" display mode. The default mode is now "time", not "boot".
- ANSIfy.
- s@kre\(@vmstat\(@.
- __RCSID() police.
- Tweak inet.icmp display visual a little.

icmp.c 1.5
iostat.c 1.16
ip.c 1.8
ip6.c 1.5, 1.7
ipsec.c 1.5
keyboard.c 1.12
main.c 1.26
mbufs.c 1.9
netcmds.c 1.16
 1.23.12.1  09-Jan-2008  matt sync with HEAD
 1.23.8.1  03-Jun-2008  skrll Sync with netbsd-4.
 1.23.6.1  03-Feb-2008  riz Pull up following revision(s) (requested by christos in ticket #1031):
usr.bin/systat/keyboard.c: revision 1.24
usr.bin/systat/main.c: revision 1.41
usr.bin/systat/extern.h: revision 1.38
don't call curses from a signal handler!
 1.24.32.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.24.28.1  20-Oct-2013  bouyer Pull up following revision(s) (requested by dholland in ticket #968):
usr.bin/systat/keyboard.c: revision 1.25
No David, '\?' is not the del character. Broken in rev 1.21.
XXX pullup-5, pullup-6.
 1.24.26.1  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.24.10.1  20-Oct-2013  bouyer Pull up following revision(s) (requested by dholland in ticket #1885):
usr.bin/systat/keyboard.c: revision 1.25
No David, '\?' is not the del character. Broken in rev 1.21.
XXX pullup-5, pullup-6.

RSS XML Feed