stty, SCO, clear EOL
Joe Chasan
joe at magnatechonline.com
Fri Jul 15 11:40:27 PDT 2016
On Fri, Jul 15, 2016 at 01:44:08PM -0400, Joe Chasan via Filepro-list wrote:
> On Fri, Jul 15, 2016 at 01:14:21PM -0400, Brian K. White via Filepro-list wrote:
> > On 7/15/2016 10:43 AM, Joe Chasan via Filepro-list wrote:
> > >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.
> >
> > Excellent help. Sounds like the first thing to do is ask the
> > customer if they are updated to at least mp4 and to install the
> > current maintenance pack whatever that is.
>
> To clarify, that change began in 5.07MP3 and continued in MP4 - I don't
> think anything's been "fixed" since, not that they consider their initial
> fix a bug anyway. For all intents and purposes, if on SCO still, one should
> be on the latest maintenance pack anyway, complete with the few patches
> since (see patchck), but you are pretty much stuck with what is out there
> now for that platform. One cannot expect much from SCO/Xinuous at this point
> on an older platform such as this, even if they had the resources still.
>
> Hence, my "hack".
Sorry, meant OSR6.0 MP3. Forget I said 5.07 WRT SCO. The rest still
applies.
-joe
More information about the Filepro-list
mailing list