Re: coupla things (fwd)

Riku Meskanen (mesrik@whisper.cc.jyu.fi)
22 Dec 1996 19:24:25 +0200

MegaZone <megazone@livingston.com> writes:
> Once upon a time Stephen Zedalis shaped the electrons to say...
> >storing last command somewhere for the "!!". I bet what you aren't saying
> >is that there is an RFE already on this one.
>
> Yes, it is... I would love to see something like this:
> ^P - previous line
> ^N - next line
> ^B - back along current line
> ^F - forward along current line
> ^A - beginning of line
> ^E - end of line
> ^D - delete
> ^K - delete from current position to end of line
> <backspace> - backspace
> !! - repeat last command (exists)
> !# - repeat command number
> ^old^new - repeat last command with changes
> history - display history list (perhaps "show history" in our lingo)
> set history # - set the length of the history list, default 1 (current)
>
> But that's just what I'd love to see. :-)
>
Great, I vote for these too!

But some wishes still to go:

M-DEL - delete prev word
M-d - delete next word
^Y - yank in
M-b - move word backwards
M-f - move word forward
^T - transpose character
^I - complete
M-<arg> - repeat next command this many times

always consider delete as cut to
buffer and ^Y as paste. Support for
vt100 cursor keys would be ok too!

They are _very_ effective, just try them on
any Cisco IOS where they have been since 10.xx
and see the difference when trying giving multiple
lines where only one word changes or making changes
to interface...

router# conf term<CR>
router(config)#int s0:15<CR>
router(config-if)#no ip address 192.168.127.6 255.255.255.252 secondary<CR>
router(config-if)#<^P>no ip address 192.168.127.6 255.255.255.252 secondary
router(config-if)#<M-d>ip address 192.168.127.6 255.255.255.252 secondary
router(config-if)#<M-f>ip<M-f> address<M-f> 192<M-f>.168<M-f>.127<M-f>.6\
<M-DEL>5<CR> 255.255.255.252 secondary
rourer(config-if)#

So i had to write that line to be corrected
only once and edit last ip-digit on buffer,
this reduces new typos a _lot_!

Only silly thing IOS (to my knowledge) does not
support is M-<argument-value>, if it I have
<M-6><M-f><M-DEL>5<CR> instead of repeating word
forward six times.

I would also love to see some kind of textual
form of configuration listing you can generate
which _also indents properly interfaces_ !
This lets you quickly find details you are
interested, then just make that up/downloadable
with TFTP ....

Ok ok, just drop M-x doctor & M-x hanoi
and that will do for me <grin> ;)

> >BTW, got a PM-3 and love it. Good work guys.
>
> Good to hear.
>
Me too (going to have one soon), anyone using with
Merit radius.23c-basic?

> -MZ
> --

:-) riku

ps. I think IOS uses some small reimplemented subset
of GNU readline() or something very similar, but it's
damn good and quick, when you have to do things online.

-- 
Riku Meskanen <mesrik@cc.jyu.fi>          <root@jyu.fi>,<hostmaster@jyu.fi>
System and network administrator          <hostmaster@co.jyu.fi>,
University of Jyvaskyla                   <hostmaster@jklmlk.fi>
PO-BOX 31, FI-40351 JYVASKYLA, Finland (Europe)
Voice: +358 14 60 3580
Fax:   +358 14 60 3611