small patch for ngctl
Ganbold
ganbold at micom.mng.net
Fri May 19 00:44:28 PDT 2006
Hi,
I've made a small patch enhancement for ngctl to support commands
history via up/down keys when ngctl works under interactive mode.
It was tested on 7.0-CURRENT machine (FreeBSD 7.0-CURRENT #3: Tue May 16
19:17:48 ULAST 2006).
I thought this feature might be useful for all. I hope my patch follows
style(9) and it is made against CURRENT, it should also cleanly apply on
RELENG_6.
I saw a similar enhancement patch in PR
http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/87352 which adds line
edit and history support to ngctl(8) via libedit.
My patch uses TERMIOS(4) structure which I thought more portable. Maybe
I'm wrong.
Please let me know if there is anything that I did wrong.
thanks,
Ganbold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.c.patch
Type: text/x-patch
Size: 5320 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20060519/a76a5ffb/main.c.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ngctl.h.patch
Type: text/x-patch
Size: 570 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20060519/a76a5ffb/ngctl.h.bin
More information about the freebsd-current
mailing list