xterms and vi

Geoff Hart ghart@siemens-psc.com
Tue Aug 31 23:49:00 GMT 1999

> > >It sounds like you've forgotten to use cygwin versions of ftp and vi.
> > >unlikely that windows-only versions of those programs will work with
> > >CYGWIN=tty scheme.
> >
> > Why is that unlikely?  I mean, can we make an "xterm" which acts both as
> > tty for Cygwin tools, *and* as a DOS console window for DOS
> Windows doesn't understand the UNIX terminal structures.

Well, I can understand how some Windows Console applications might have
difficulty operating in a straight "UNIX" terminal, but in my case I'm
mainly interested in Activestate's Perl debugger.

And I have discovered a rather trivial solution: the EMACS environment
variable :-).

ghart:ghart$ export EMACS=1
ghart:ghart$ perl -d /usr/s/srcl/build/bld

Loading DB routines from perl5db.pl version 1.0402
Emacs support available.

Enter h or `h h' for help.

56:     $IS_NT_PERL = defined (&Win32::IsWinNT); # If we're using NT Perl

I believe the general problem is the "con" file.  Applications (DOS/Windows/
CYGWIN) can open that file to gain direct access to the spawning console.
That appears to completely avoid STDIN/STDOUT/STDERR: which is the real

If there was a way to configure "con" to use the file handles associated
with STDIN/STDOUT/STDERR, then we'd have a more universal solution (unless
application was trying to do something fancy with the console, of course).

> Try a recent snapshot of the cygwin1.dll.  SET CYGWIN=notty and see what
> happens.  I think you'll be surprised.  The terminal emulation has been
> rewritten.

Yes I tried it, and it made things slightly worse.  No longer could I
the "Windows" application from the originating *Console* (DOS prompt)
"output" from "perl -d" would still appeared there, but "input" ("n", "q",
no longer seemed to get back to "perl".  It's like the input stream for
was somehow cut off.

But, "EMACS" makes all of this mute.  Long live Emacs!!! ;^)


Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

More information about the Cygwin mailing list