[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Turn on Echo in Terminal



Hi,

obviously the terminal emulation is messed up. Normally this happens
after a program, which can navigate over the whole terminal area, ended
without cleaning up the terminal settings.

The reciepe for reproducing the effect at
  http://askubuntu.com/questions/171449/shell-does-not-show-typed-in-commands-reset-works-but-what-happened
works for me. With:

  echo some_existing_file | xargs vim

vim warns

  Vim: Warning: Input is not from a terminal

and after it ends, the xterm (i.e. VT102 emulation) is in the problem state.
If i toggle in blindly

  stty sane

and press two times Return then i'm back to normal.
(The second Return is to get the shell prompt at the start of its own line.)

The diff of output of
  stty --all
shows ("<" sane, ">" insane):
-----------------------------------------------------------------------------
  < 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 = ^V; flush = ^O; min = 1; time = 0;
  ---
  > intr = <undef>; quit = <undef>; erase = <undef>; kill = <undef>; eof = <undef>;
  > eol = <undef>; eol2 = <undef>; swtch = <undef>; start = <undef>; stop = <undef>;
  > susp = <undef>; rprnt = <undef>; werase = <undef>; lnext = <undef>;
  > flush = <undef>; min = 0; time = 0;
  6,10c7,11
  < -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
  ---
  > -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 > -isig -icanon -iexten -echo -echoe -echok -echonl -noflsh -xcase -tostop -echoprt
  > -echoctl -echoke
-----------------------------------------------------------------------------


Have a nice day :)

Thomas


Reply to: