NAME

jobsel


SYNOPSIS

jobsel <joblist> [COLUMNS]


DESCRIPTION

Improved job control frontend for bash. joblist is a jobs -l output from which jobsel builds a menu. COLUMNS is an optional parameter, if omitted jobsel calls tput(1) to obtain number of columns on the terminal.


KEYS

 Left,Right  Select item
 Enter       Switch to job in forground
 U           Hangup selected process             SIGHUP
 I           Interrupt process                   SIGINT
 S,T,Space   Suspend, Resume job        SIGCONT,SIGTSTP
 K           Kill process                       SIGKILL
 D           Process details
 X,C,L       Expanded, collapsed, in-line display mode
 Q           Dismiss menu


EXAMPLE

eval $(jobsel "$(jobs -l)" $COLUMNS)


HINTS

Use as an alias

 alias j='eval $(jobsel "$(jobs -l)" $COLUMNS)'

Bind a function key for it

 bind -x '"\204"':"eval \$(jobsel \"\$(jobs -l)\" \$COLUMNS)"
 bind '"\ej"':"\"\204\"" # ESC-J
 Where 204 is an arbitrary free keyscan code