]> granicus.if.org Git - procps-ng/commit
top: enable true line input editing with paste support
authorJim Warner <james.warner@comcast.net>
Fri, 15 Feb 2013 06:00:00 +0000 (00:00 -0600)
committerCraig Small <csmall@enc.com.au>
Sat, 23 Feb 2013 21:43:45 +0000 (08:43 +1100)
commit477b10c0bd00ed8750c02a9580e606baadb0e6f4
treee0e91618697ddf6770d842ad05872974b351103b
parentd04297843f14e399c699c29b4222b9c9d168c116
top: enable true line input editing with paste support

This patch changes the TERMIO_PROXY define back to the
former TERMIOS_ONLY thus changing the top default too.

Plus we can now use true line input editing while also
retaining paste capability. That former native termios
support provided only a limited destructive backspace.

Now we exploit the Left/Right arrow keys, Home/End and
Delete. Plus, the Insert key can toggle overtype mode!

[ The stage is now set for a really huge improvement ]
[ to any user input terminated with the <Enter> key. ]
[ So please stay tuned for the next patch to arrive! ]

(everything is perfectly justified plus right margins)
(are completely filled, but of course it must be luck)

Reference(s):
commit fa21a6ca819f0f8442849552d0c499e79263ffdb

Signed-off-by: Jim Warner <james.warner@comcast.net>
top/top.c
top/top.h