From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,68f5a3025349f26a X-Google-Attributes: gid1164f8,public X-Google-Thread: fee84,68f5a3025349f26a X-Google-Attributes: gidfee84,public From: Jesper Frank Nemholt Subject: Re: How to disable the stty tabs parameter permanently ? Date: 2000/02/15 Message-ID: <38A98258.E4FC3CFB@dassic.com>#1/1 X-Deja-AN: 586186834 Content-Transfer-Encoding: 7bit References: <38A86CD3.74DBB1F9@dassic.com> <76dq4.6104$lK6.146399@iad-read.news.verio.net> X-Accept-Language: en,da,en-US Content-Type: text/plain; charset=us-ascii X-Complaints-To: Department of Written Abuse X-Trace: news.inet.tele.dk 950633828 15574 195.249.165.115 Organization: Dassic Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1,comp.sys.dec "T.E.Dickey" wrote: > > In comp.unix.osf.osf1 Jesper Frank Nemholt 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