Article View: news.software.readers
Article #8597Re: trn on BSDI386 1.1 - <enter> maps to ^M?
From: Gregory Gulik
Date: Tue, 19 Apr 1994 16:04
Date: Tue, 19 Apr 1994 16:04
46 lines
2360 bytes
2360 bytes
Some of our users have experienced the same problem...
In article <CoDFGn.A54@borland.com>, Wayne Davison <davison@borland.com> wrote:
>
>It is possible that Configure chose the wrong termio setting for your
>system. If you want to try out a different setting, change the lines
>in the config.sh file that look like this:
>
>i_sgtty='undef'
>i_termio='undef'
>i_termios='define'
Configure correctly set these values.
>to define one of these at a time and see if that helps. Alternately,
>there is support for CR instead of LF in term.c that looks like this:
>
>#ifdef cray
> } while (*s != '\r'); /* till a newline (not echoed) */
>#else
> } while (*s != '\n'); /* till a newline (not echoed) */
>#endif
>
>You can change that to #if 1, if you like.
We changed this to the following and it seems to work fine. We
expect either character because some terminal emulators send one key,
and others send the other. I never figured out the root cause.
Our version of the patch:
#if defined(__bsdi__) || defined(cray)
} while (*s != '\r' && *s != '\n'); /* till a newline (not echoed) */
#else
} while (*s != '\n'); /* till a newline (not echoed) */
#endif
-greg
--
Gregory Gulik - greg@wwa.com
Computing Engineers, Inc. - Home of WorldWide Access (SM)
Data: +1 312 282 8605 (Chicago) - +1 708 367 1871 (Lake County)
Info: +1 708 367 1870 or send mail to info@wwa.com
Technical Details
Message-ID:
<2p0vfb$i0n@gagme.wwa.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!nntp.gmd.de!newsserver.jvnc.net!news.cac.psu.edu!news.pop.psu.edu!ctc.com!news.mic.ucla.edu!library.ucla.edu!ihnp4.ucsd.edu!swrinde!hookup!news2.sprintlink.net!news.sprintlink.net!sashimi.wwa.com!gagme.wwa.com!not-for-mailReferences:
<2okvlr$eah@agate.berkeley.edu> <CoDFGn.A54@borland.com>Show Full Headers
Complete Article Headers
Message-ID: <2p0vfb$i0n@gagme.wwa.com> Subject: Re: trn on BSDI386 1.1 - <enter> maps to ^M? Date: Tue, 19 Apr 1994 16:04:59 +0000 From: greg@gagme.wwa.com (Gregory Gulik) References: <2okvlr$eah@agate.berkeley.edu> <CoDFGn.A54@borland.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!nntp.gmd.de!newsserver.jvnc.net!news.cac.psu.edu!news.pop.psu.edu!ctc.com!news.mic.ucla.edu!library.ucla.edu!ihnp4.ucsd.edu!swrinde!hookup!news2.sprintlink.net!news.sprintlink.net!sashimi.wwa.com!gagme.wwa.com!not-for-mail Newsgroups: news.software.readers Organization: WorldWide Access (SM) Chicagoland Internet Services 312-282-8605 708-367-1871 Lines: 46 NNTP-Posting-Host: gagme.wwa.com