stty, SCO, clear EOL
Joe Chasan
joe at magnatechonline.com
Fri Jul 15 07:43:52 PDT 2016
On Fri, Jul 15, 2016 at 09:02:34AM -0500, Bob Rasmussen via Filepro-list wrote:
> I'm dusting off old memories here, in response to a customer, and I
> need some help. Customer connects from Anzio on Windows to SCO 6,
> runs filePro (not sure of version). Says if he connects via telnet,
> all is good, but if he connects via SSH, when he types ctrl-O, it
> doesn't clear to end of line. Emulation type is SCOANSI.
>
> The difference boils down to the stty setting "iexten". It's off in
> telnet (not sure what initializes this); ON in SSH (set by Anzio).
> In both cases, flush = ^o.
>
> Here's my analysis:
>
> * When iexten is on, UNIX gets the ctrl-O and deals with it somehow;
>
> * When iexten is off, UNIX passes the ctrl-O to filePro, which deals
> with it as directed by the termcap entry;
>
> * When filePro sets the tty mode (in C) to "raw", it must not be
> turning off the iexten switch;
>
> * This may not be an issue in Linux.
>
> Does this all make sense? Is my analysis correct?
I have noticed it as well. Not an issue in Linux or in OSR5 even. Not an
anzio issue either as other ssh clients do the same thing. Tried
digging into it on SCO side, the only mention I see of iexten is in
maintenance pack 3 & 4 notes, and perhaps it makes more sense to you:
| 308. SVR5 OSR5 ABI differences in termios ioctl c_lflag bit meaning. --
| When running various OpenServer 5 binaries which used termio/termios
| related ioctl's, certain operations were not working correctly.
| Among these issues were the setting of the termio/termios c_lflag
| TOSTOP, ECHOCTL, and IEXTEN flags, and the termios c_cc elements
| VSTART, VSTOP, VDSUSP, and VREPRINT. The mentioned items have been
| corrected, so the proper settings are done when running the
| OpenServer 5 binary. (ID: 534510:1)
A hack of a fix would be to "stty flush ''" or "stty -iexten" in
/etc/profile, optionaly if $SSH_TTY is set, which I've done on occasion
when annoyed.
--
-Joe Chasan- Magnatech Business Systems, Inc.
joe - at - magnatechonline -dot- com Plainview, NY - USA
http://www.MagnatechOnline.com Tel.(516) 931-4444/Fax.(516) 931-1264
More information about the Filepro-list
mailing list