www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/11/13/11:17:39

Message-ID: <3DD27521.6CA25886@junk.net>
From: Ian Chapman <ian_chapman AT junk DOT net>
X-Mailer: Mozilla 4.79 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: djgpp or perl?
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1021112081425 DOT 15374G-100000 AT is>
Lines: 19
Date: Wed, 13 Nov 2002 10:52:02 -0500
NNTP-Posting-Host: 64.230.53.129
X-Complaints-To: abuse AT sympatico DOT ca
X-Trace: news20.bellglobal.com 1037202657 64.230.53.129 (Wed, 13 Nov 2002 10:50:57 EST)
NNTP-Posting-Date: Wed, 13 Nov 2002 10:50:57 EST
Organization: Bell Sympatico
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

> If Perl uses termios, it might be a bug in our termios emulation, or it
> might be that you need to tell termios to treat Ctrl-D as EOF (I don't
> remember if that is the default).

I've changed my perl call from #!/home/bin/perl -w to #!/home/bin/perl -wC and
now if I give CR <ctl Z> CR it does what <ctl D> was documented to do. I guess
this should be considered as a workround?

        Many thanks for your support.  Regards Ian.

PS the perl news group gave this reply
It used
to use standard C stream functionality to implement readline() (which
is what gets called by the <> operator. As of 5.8.0 there is an extra
PerlIO layer in there, but I would be extremely surprised if that
fiddled with terminal settings.



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019