screen-devel
[Top][All Lists]
Advanced

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

Re: [screen-devel] Terminal VIM run from xargs closes my GNU Screen wind


From: Micah Cowan
Subject: Re: [screen-devel] Terminal VIM run from xargs closes my GNU Screen window
Date: Thu, 19 Mar 2009 12:54:04 -0700
User-agent: Thunderbird 2.0.0.19 (X11/20090105)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Micah Cowan wrote:
> 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.
> ?

It'd also be very useful to know what exit statuses were returned by
both vim and tcsh, but I'm not sure of the best way to get at those.

Your tcsh doesn't happen to provide an xargs as a builtin by any chance,
does it?

- --
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

iEYEARECAAYFAknCotwACgkQ7M8hyUobTrE8pQCbBmOYCVKF/EU9q1F9cTea7L9Y
vfsAnAz4LOfD1NYwsOzk7NpTy9znJnvj
=xvjq
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]