Thread View: news.software.readers
3 messages
3 total messages
Started by Brian Behlendorf
Fri, 15 Apr 1994 02:54
trn on BSDI386 1.1 - <enter> maps to ^M?
Author: Brian Behlendorf
Date: Fri, 15 Apr 1994 02:54
Date: Fri, 15 Apr 1994 02:54
8 lines
1133 bytes
1133 bytes
I'm compiling trn 3.4.1 on a BSDI 386 box, and the Configure script and compilation go smoothly, but when I leave cbreak mode with a command like "g alt.food", pressing return appends the ^M key instead of executing the command as it should. Likewise with control-C (though control-Z is able to suspend the process). Any pointers on where I went wrong or where to change the code? Brian
Re: trn on BSDI386 1.1 - <enter> maps to ^M?
Author: Wayne Davison
Date: Sat, 16 Apr 1994 21:24
Date: Sat, 16 Apr 1994 21:24
29 lines
1653 bytes
1653 bytes
According to Brian Behlendorf <bbehlen@soda.berkeley.edu>:
> when I leave cbreak mode with a command like "g alt.food", pressing
> return appends the ^M key instead of executing the command
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'
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.
> Likewise with control-C
Maybe your interrupt character isn't set to be ^C? Check with "stty all".
--
Wayne Davison
davison@borland.com
Re: trn on BSDI386 1.1 - <enter> maps to ^M?
Author: 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads