Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* How to disable the stty tabs parameter permanently ?
@ 2000-02-14  5:00 Jesper Frank Nemholt
  2000-02-15  5:00 ` T.E.Dickey
  0 siblings, 1 reply; 4+ messages in thread
From: Jesper Frank Nemholt @ 2000-02-14  5:00 UTC (permalink / raw)


Hi!

I'm having some problems with a program that transfers data between a PC
and a Alpha box running 4.0f. The transfer is done using xmodem over
telnet.

The data gets corrupted in a way where all tabulator characters gets
converted to spaces.

I found out that the stty tabs parameter (Compaq/Digital specific) did
exactly that, and that it's enabled by default on Compaq/Digital Unix.
I can turn it off manually by writing stty -tabs, but somehow it gets
enabled again by the xmodem program (one that I don't have access to
rewrite).

On other unix flavors I've noticed that tabs either doesn't exist, or is
disabled by default, so the problem only occurs with Compaq/Digital Unix
(and actually all versions, I even tried 3.2g).


How do I turn it off permanently in a way that'll make it impossible for
the xmodem program to turn it on ?

I looked in termcap definitions for the used vt (vt220), but it seems
that I can only control tab0-3 and not tabs from there.




l8r/Jspr



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to disable the stty tabs parameter permanently ?
  2000-02-14  5:00 How to disable the stty tabs parameter permanently ? Jesper Frank Nemholt
@ 2000-02-15  5:00 ` T.E.Dickey
  2000-02-15  5:00   ` Jesper Frank Nemholt
  0 siblings, 1 reply; 4+ messages in thread
From: T.E.Dickey @ 2000-02-15  5:00 UTC (permalink / raw)


In comp.unix.osf.osf1 Jesper Frank Nemholt <jfn@dassic.com> wrote:
...
> On other unix flavors I've noticed that tabs either doesn't exist, or is
> disabled by default, so the problem only occurs with Compaq/Digital Unix
> (and actually all versions, I even tried 3.2g).

> How do I turn it off permanently in a way that'll make it impossible for
> the xmodem program to turn it on ?

> I looked in termcap definitions for the used vt (vt220), but it seems
> that I can only control tab0-3 and not tabs from there.

termcap is only part of the answer: the terminal driver implements soft and
hard tabs, so the stty command still is needed.

if the terminal driver doesn't get involved, the corresponding (upstream)
termcap capability is 'pt' (physical tabs).

-- 
Thomas E. Dickey
dickey@clark.net
http://www.clark.net/pub/dickey



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to disable the stty tabs parameter permanently ?
  2000-02-15  5:00 ` T.E.Dickey
@ 2000-02-15  5:00   ` Jesper Frank Nemholt
       [not found]     ` <38b46542@oit.umass.edu>
  0 siblings, 1 reply; 4+ messages in thread
From: Jesper Frank Nemholt @ 2000-02-15  5:00 UTC (permalink / raw)


"T.E.Dickey" wrote:
> 
> In comp.unix.osf.osf1 Jesper Frank Nemholt <jfn@dassic.com> wrote:
> ...
> > On other unix flavors I've noticed that tabs either doesn't exist, or is
> > disabled by default, so the problem only occurs with Compaq/Digital Unix
> > (and actually all versions, I even tried 3.2g).
> 
> > How do I turn it off permanently in a way that'll make it impossible for
> > the xmodem program to turn it on ?
> 
> > I looked in termcap definitions for the used vt (vt220), but it seems
> > that I can only control tab0-3 and not tabs from there.
> 
> termcap is only part of the answer: the terminal driver implements soft and
> hard tabs, so the stty command still is needed.
> 
> if the terminal driver doesn't get involved, the corresponding (upstream)
> termcap capability is 'pt' (physical tabs).

I tried pt earlier on, and it didn't have any effect on tabs.

I looked further into the problem today.
The xmodem program actually changes the terminal environment to "raw
mode" because it needs to send binary data over the telnet connection.
In this change, it also manages to somehow reset the stty settings so
any "stty -tabs" settings are lost unless I've done something that'll
disallow any enabling of tabs.

The people porting the xmodem program say that a system("/usr/bin/stty
-tabs") from inside the program doesn't have any effect.

Since tabs is enabled by default in dunix, and this is non-standard on
other unix flavors, I hoped it was possible to change that behavior
somewhere/somehow.

The problem also occurs only in one direction. From the PC to the Alpha
everything works fine, but from the same session, the system initiates
another transfer from the Alpha to the PC, and it is this transfer that
doesn't work because of tabs being converted to spaces.


l8r/Jspr



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to disable the stty tabs parameter permanently ?
       [not found]     ` <38b46542@oit.umass.edu>
@ 2000-02-24  5:00       ` Jesper Frank Nemholt
  0 siblings, 0 replies; 4+ messages in thread
From: Jesper Frank Nemholt @ 2000-02-24  5:00 UTC (permalink / raw)


Peter deFriesse wrote:
> 
> Somewhere off the top of my screen in article <38A98258.E4FC3CFB@dassic.com>,
>   the esteemed jfn@dassic.com said:
> 
>   I haven't tried this myself, but it seems that making the change
> in /etc/gettydefs would fix your problem.
> 
>   Heaven only knows what the users might think about it (or if they'd
> even notice).

I tried that earlier on, but it didn't work.

I found out that I could control TABS with OXTABS, but it didn't work in
the xmodem program. I then found that it didn't work because the program
used IOctl() calls. When I changed that to tcsetattr() it worked.

...but it didn't solve the problem.

After eliminating all possible problems in the xmodem program, we've
found that it's actually another script/program making the problems
because it makes som changes to the data the xmodem program is supposed
to send later.
These changes are somehow causing problems on a dunix box, other, but
solveable problems on a aix box, and no problems on a DDE Supermax box
(where it originally was developed).

Nevertheless, we're much closer to a solution now since it's basically
just a 600 line shell-script and another program doing something wrong.


l8r/Jspr



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2000-02-24  5:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-02-14  5:00 How to disable the stty tabs parameter permanently ? Jesper Frank Nemholt
2000-02-15  5:00 ` T.E.Dickey
2000-02-15  5:00   ` Jesper Frank Nemholt
     [not found]     ` <38b46542@oit.umass.edu>
2000-02-24  5:00       ` Jesper Frank Nemholt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox