Please consider for inclusion Some small glitches in line editing were fixed Whitespace cleaned up with leading tabs Incorporate same features in hush as in ash, provided history &lineediting enabled
On Wed, Aug 31, 2011 at 8:19 PM, Flemming Madsen <[email protected]> wrote: > > Hello > > Please consider the following additions to busybox, realized > in the attached. > > They are currently supplied as one big patch against 1.19.0. > All tested with valgrind on X86 + test on ARM9 > > 1. inotifyd.c: Implement a builtin 'echo' command for simply > outputting events on stdout. This will allow programs&scripts > to popen() 'inotifyd echo ...' for easy inotify > functionality without excessive fork/exec overhead. > > 2. ash.c: A history builtin command showing current history > > 3. procps.c: An 'l' option to ps without enabling full desktop option > FEATURE_PS_LONG: Adds fields PPID, RSS, START, TIME & TTY > > 4. lineedit.c ash.c: Consider aliases and ash builtins in command > completion > > 5. lineedit.c ash.c: Help on lineedit keycodes. > FEATURE_EDITING_HELP: "Help on line editing (in ash help command)" > % help > Built-in commands: > ------------------ > . : [ [[ alias bg break cd chdir command continue echo eval exec > exit export false fg getopts hash help history jobs kill let > local printf pwd read readonly return set shift source test times > trap true type ulimit umask unalias unset wait > > Line editing: > ------------------- > C-A, <Home> Move to start of line > C-E, <End> Move to end of line > C-B, <Left> Move back one char > C-F, <Right> Move forward one char > C-D Delete one char or exit > <Del> Delete one char to the right > C-H Delete one char to the left > C-W Delete one Word to the left > C-U Clear line before cursor > C-K Kill / Clear rest of line > C-L Clear screen > C-R Inremental reverse history search > C-X Redraw line > C-P, <Up> Get previous command line > C-N, <Down> Get next command line > <Tab> Tab completion > M-Tab, S-Tab Tab menu forward. <Tab> goes back again > M-b, C-Left Move word backward > M-f, C-Right Move word forward > M-w, M-BkSpace Delete word backward > M-d, M-Del Delete word forward > M-P, M-Up Get previous line, matching prefix > M-n, M-Down Get next line, matching prefix > M-., M-_ Insert last word of previous line > > 6. lineedit.c: Support for some of the the above keycodes > FEATURE_EDITING_EXT: "Additional Meta key line editing commands" > Enable M-b M-f M-w M-d M-w M-n M-p and M-. M-_ editing commands > > a) Completion menu for browsing completion matches with S-Tab/Tab > b) Find commands matching prefix before cursor with M-p M-n > c) Insert last word of previous (repeated) command with M-. or M-_ > d) Word/identifier deletion and movement aliases M-w M-b M-f > e) Redraw line with C-X (And C-R if inremental search is disabled) > > > Sizes: > ------ > > Pristine sources: > text data bss dec hex filename > 500008 1876 8780 510664 7cac8 ../busybox-1.19.0/busybox > > +626: Non config'able changes; inotifyd echo + history + completion extra > text data bss dec hex filename > 500634 1876 8780 511290 7cd3a busybox > > +628 Lineedit help added > text data bss dec hex filename > 501262 1876 8780 511918 7cfae busybox > > +757 Ps long option added > text data bss dec hex filename > 502019 1876 8780 512675 7d2a3 busybox > > +1765 Line edit additions added > text data bss dec hex filename > 503784 1876 8780 514440 7d988 busybox > > > Enjoy > > /Flemming _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
