Source

srw / srw.1

Full commit
Evan Gates acd1d9e 
Evan Gates c06f2dd 




Evan Gates c7d33f0 

Evan Gates c06f2dd 
Evan Gates 4fc3321 


Evan Gates 7413bb4 
Evan Gates 4fc3321 
Evan Gates c06f2dd 
Evan Gates 4fc3321 

Evan Gates c06f2dd 

Evan Gates 4fc3321 
Evan Gates c06f2dd 

Evan Gates 4fc3321 
Evan Gates c7d33f0 
Evan Gates c06f2dd 

Evan Gates c7d33f0 
Evan Gates c06f2dd 
Evan Gates 4fc3321 
Evan Gates c7d33f0 
Evan Gates 7413bb4 


Evan Gates c06f2dd 
Evan Gates 6a8fd9f 
Evan Gates c7d33f0 
Evan Gates 6a8fd9f 
Evan Gates c7d33f0 





Evan Gates 14f0a3c 


Evan Gates c7d33f0 













Evan Gates c484874 
Evan Gates 7c933cf 
Evan Gates c484874 


Evan Gates 7c933cf 


Evan Gates 4fc3321 
Evan Gates c7d33f0 
Evan Gates c06f2dd 
Evan Gates 4fc3321 

Evan Gates 7988951 

.TH SRW 1 srw-VERSION
.SH NAME
srw \- simple read wrapper

.SH DESCRIPTION
.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.

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

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

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

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

.SH SEE ALSO
.BR ii (1),
.BR pcw (1),
.BR sic (1)