srw / srw.1

srw \- simple read wrapper

.B srw
is used to provide a simple line editing interface to a program. The output of the program does not interupt the input to srw, and the input to srw is not echoed.

.SY srw
.OP \-p prompt
.OP \-v
.OP \-w
.I cmd
.RI [ args... ]

.I cmd
the command to wrap, this and it's arguments must come last
.IR args...
the arguments passed to cmd
.BI \-p " prompt"
override the default prompt (>)
.B \-v
print version information and exit
.B \-w
pass along SIGWINCHs to the child

srw supports the usual arrow keys, Home, End, Delete, as well as the following shortcuts
.I C-a
move cursor to beginning of line
.I C-b
move cursor back one character
.I C-d
delete character under cursor
.I C-e
move cursor to end of the line
.I C-f
move cursor forward one character
.I C-k
delete from cursor to end of line
.I C-u
delete entire line
.I C-w
delete from cursor to beginning of word
and not shortcuts:
.I C-l
send SIGWINCH to child process group (helpful for cw)
.I C-v
enter next character typed, for example ^V^D inserts a ^D instead of deleting a character

Copyright \(co 2010 by Evan Gates <evan.gates (at) gmail (dot) com>

.BR ii (1),
.BR pcw (1),
.BR sic (1)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.