ntpmon now has some keystroke commands
Eric S. Raymond
esr at thyrsus.com
Tue Dec 13 19:30:26 UTC 2016
Gary E. Miller <gem at rellim.com>:
> > a:: Change peer display to apeers mode, showing association IDs.
> > o:: Change peer display to opeers mode, showing destination address.
> > p:: Change peer display to default mode, showing refid
>
> Some of the other commands are toggles. It would be nice if these were
> a three way toggle. I like to just stab one key over and over and see the
> data differentlly. Not sure how that would work. Maybe a toggles with
> p and o toggles with p? Or get rid of a and o, keep p, and have p toggle
> though all three?
All that is too much to remember. I have just made the spacebar rotate
through all three modes.
> Also, +1 to Mark's suggestion of h and ? for help.
? is already done.
> Ditto for help, version on the command line:
>
> spidey ntpsec # ntpmon -?
> ntpq: standard-mode lookup of -? failed, Name or service not known
> ntpq: ndp lookup failed, Servname not supported for ai_socktype
> ***No host open
>
> spidey ntpsec # ntpmon -V
> ntpq: standard-mode lookup of -V failed, Name or service not known
> ntpq: ndp lookup failed, Servname not supported for ai_socktype
> ***No host open
>
> > I've abolished the command-line options that these make redundant.
>
> Hmm, you may want to reconsider that. I was instead expecting you to keep
> those and add a 'one-shot' mode sort of like ntpq. But not a big deal...
I had it working like that for a while. The problem is that there is no
way to satisfy all three of the following constraints:
1. ntpmon options have the same semantics as corresponding ntpq options
2. option letters are the same as the corresponding command keys
3. commands are natural mnemonics in English
The simplest way to get to a consistent UI design was to remove all
command-line options. Which is a good idea anyway - less to remember,
and the command keystrokes cover the functionality.
--
<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 811 bytes
Desc: not available
URL: <http://lists.ntpsec.org/pipermail/devel/attachments/20161213/de052b08/attachment.bin>
More information about the devel
mailing list