Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Feb 2003 15:07:34 -0500 (EST)
From:      Rich Fox <java@foxengines.net>
To:        Chuck Swiger <cswiger@mac.com>
Cc:        FreeBSD General Mailing List <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Slightly OT, OSX, terminals & key combinations
Message-ID:  <20030202140443.M3150-100000@test_server.no.domain>
In-Reply-To: <3E3D4062.5020600@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

Thanks, I think that found the issue, however...

an stty -a returns...
	[snip]
	cchars: discard = ^O; dsusp = ^Y; eof
	[snip]

man termios says:

DISCARD
	Special character on input and is recognized if the IEXTEN flag
        is set.  Receipt of this character toggles the flushing of termi-
        nal output.


Unfortunately, I can't quite make out where this is set when reading the
various man pages regarding terminals.

In gettytab, I see:
# cflags: CLOCAL | HUPCL | CREAD | CS8
# oflags: OPOST | ONLCR | OXTABS
# iflags: IXOFF | IXON | ICRNL | IGNPAR
# lflags: IEXTEN | ICANON | ISIG | ECHOCTL | ECHO | ECHOK | ECHOE | ECHOKE
#
# The `0' flags don't have input enabled.  The `1' flags don't echo.
# (Echoing is done inside getty itself.)
#

IEXTEN being the critter than enables or disables this functionality, and
sys/termios.h has this:

#define IEXTEN          0x00000400      /* enable DISCARD and LNEXT */

However, under the local.9600 setting in gettytab, I don't see a setting
that matches IEXTEN...

local.9600|CLOCAL tty @ 9600 Bd:\
        :c0#0x0000c300:c1#0x0000cb00:c2#0x0000cb00:\
        :o0#0x00000007:o1#0x00000002:o2#0x00000007:\
        :i0#0x00000704:i1#0x00000000:i2#0x00000704:\
        :l0#0x000005cf:l1#0x00000000:l2#0x000005cf:\
        :sp#9600:

A grep'ing of the gettytab does not return any relevant data.

Am I even barking in the right forest?

Thanks,
Rich.

 | Rich Fox
 | rich@foxengines.net
 | 86 Nobska Road
 | Woods Hole, MA 02543
 | MA 508 548 4358
 | VA 703 201 6050

On Sun, 2 Feb 2003, Chuck Swiger wrote:

> Rich Fox wrote:
> [ ... ]
> > Apparently the Terminal program in MacOS X intercepts ctrl+o combinations
> > which are used to postpone messages in Pine. Thus, when I use the key
> > combination ctrl+o it never reaches the remote machine (or at least it
> > doesn't appear to, but it doesn't appear to do anything at all on either
> > machine.)
> > Can anyone advise me on what I can use to change this?
>
> Do a "stty -all", and see what the quote character is set to.  Normally,
> it's cntl-v, but maybe it's cntl-o.  Or trying doing a cntl-v, cntl-o
> combination and see whether that gets the control character through.
>
> -Chuck
>
>
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
>
>


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030202140443.M3150-100000>