-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ethan Mallove wrote: > On Wed, Mar/18/2009 01:39:03PM, Micah Cowan wrote: > Ethan Mallove wrote: >>>> Hello, >>>> >>>> The below command causes my Screen window to close: >>>> >>>> $ touch a b c && ls -1 a b c | xargs vim >>>> Vim: Warning: Input is not from a terminal >>>> [then Screen window closes!] > FWIW, I can't produce this with Ubuntu's version of screen 4.0.3jw4 and > vim 7.1. However, after exiting vim, the terminal window is left in a > strange state (CR is no longer echoed locally, at least). > > Is it only the screen window that closes, or the whole session? > >> Just one Screen window closes. The whole session survives.
This pretty much guarantees that it's not (directly) a screen problem, then. Since both vim and the shell are brought down (the window wouldn't close unless the shell had exited), this may indicate a bug in the shell's piping code, maybe? The fact remains that this only happens within screen. What happens: (a) if you export TERM=screen while NOT running within screen, and attempt that command. (b) if you export TERM=(whatever's normal for your terminal outside screen) while running _inside_ screen, and attempt that command. ? - -- Micah J. Cowan Programmer, musician, typesetting enthusiast, gamer. Maintainer of GNU Wget and GNU Teseq http://micah.cowan.name/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAknConEACgkQ7M8hyUobTrHMJwCfdoAktJ1F61gfBG0sC5XZes7x 354An2CZzG8oRRkJVKTA6NdWiw1BOqEc =oNfA -----END PGP SIGNATURE-----