Control: retitle -1 caff: should put the TTY in a sane state before prompts

On Fri, 18 Aug 2017 at 15:16:41 -0400, G. Branden Robinson wrote:
> speed 38400 baud; rows 73; columns 191; line = 0;
> intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = 
> <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; 
> werase = ^W; lnext = <undef>; discard = ^O;
> min = 1; time = 0;
> -parenb -parodd -cmspar cs8 -hupcl -cstopb cread -clocal -crtscts
> -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl -ixon 
> -ixoff -iuclc -ixany -imaxbel iutf8
> opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 
> ff0
> isig -icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt 
> echoctl echoke -flusho -extproc

AFAICT this is caused by `stty -icrnl -icanon`.  Running `stty icrnl
icanon` or `stty sane` before caff(1) should do the trick.

Anyway caff(1) doesn't change the terminal settings; but it should
probably put the TTY in a sane state before the prompts.

Cheers,
-- 
Guilhem.

Attachment: signature.asc
Description: PGP signature

Reply via email to