tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* stty question
@ 1996-03-19 12:28 Geert.VAN DEN EEDE
  0 siblings, 0 replies; 3+ messages in thread
From: Geert.VAN DEN EEDE @ 1996-03-19 12:28 UTC (permalink / raw)
  To: tru64-unix-managers

Hi, OSF-managers.

I have a problem related to stty.

Before, in using a csh in a dxterm on an Ultrix server I could navigate through the history of my commands with the up and down arrows.
Now, using a csh in a dxterm on a DU 3.2D machine, using the up arrow results in ^[[A.
I read the stty manpage, but couldn't find a way of solving this wrong behaviour.
When I do stty -echoctl, using the up arrow doesn't give the ^[[A anymore, but doesn't give me my last command either (the cursor shifts one line up).

Any ideas as to how to remedy this ?

Thanks.

-------------------------------------------------------------------------------
Geert Van den Eede
Systems Manager
European Commission
Brussels - Belgium
e-mail: "geert.van den eede"@scic.cec.be
-------------------------------------------------------------------------------

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

* stty question
@ 1997-09-20 17:25 Jure Jerman
  0 siblings, 0 replies; 3+ messages in thread
From: Jure Jerman @ 1997-09-20 17:25 UTC (permalink / raw)
  To: tru64-unix-managers

Hi,

does anybody know how to get rid of error message: 

stty: tcgetattr: Permission denied

when executing 

rsh host_name ls

where host_name is running DU 4.0b (it is the same for 3.2c).

TIA, Jure Jerman


----------------------------------------------------------------------------
Jure Jerman                                Email: jure.jerman@rzs-hm.si
Hidrometeorological Institute of Slovenia  tel:   xx 386 61 327 461 ext.2251
Vojkova 1b                                 fax:   xx 386 61 133 13 96
SI-1001 Ljubljana  
SLOVENIA
----------------------------------------------------------------------------

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

* stty question
@ 1998-05-19 16:58 Alex Nord
  0 siblings, 0 replies; 3+ messages in thread
From: Alex Nord @ 1998-05-19 16:58 UTC (permalink / raw)
  To: tru64-unix-managers

We have a few automated fax machines that accept input from a serial port,
process the info, and fax it out.  Currently, we have two of these machines
hooked to the serial ports of a SCO box with a printcap similar to the
following, and they work fine :

nvidi:\                                        
        :lp=/dev/tty1a:sd=/usr/spool/lpd/nvidi

I am trying to get one of these machines to work on an Alpha (through a
Digi-Board) with the following printcap :

sapvidi:\                           
        :br#9600:\                  
        :ct=dev:\                   
        :lf=/usr/adm/sapvidi.err:\  
        :lp=/dev/ttya05s:\          
        :mx#0:\                     
        :sd=/usr/spool/lp/sapvidi:\ 
        :sh:                        

The problem is, when sent through the DEC box, the faxes are sent
double-spaced (blank line in between each line of text), and it causes them
to come out very (for lack of a better term) 'messy-looking'. I think I may
have tracked the problem down to differences in the stty settings between
the ports.

Here are the setting on the serial port on the SCO Box (where faxes go out
normally) :
/usr/alex

SCOBox_$ stty -a < /dev/tty1a

speed 9600 baud;   ispeed 9600 baud;   ospeed 9600 baud;

line = 0; intr = DEL; quit = ^\; erase = ^H; kill = ^U; eof = ^D; eol = ^@;

swtch <undef>;susp <undef>;start = ^Q;stop = ^S;

-parenb -parodd cs8 -cstopb hupcl cread clocal -loblk -ortsfl -ctsflow
-rtsflow                   
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl -iuclc

-ixon -ixany -ixoff

-isig -icanon min = 4 time = 0 -xcase -echo -echoe -echok -echonl -noflsh
-iexten -tostop -xclude 
-opost -olcuc -onlcr -ocrnl -onocr -onlret -ofill -ofdel

-isscancode


...And, on the DEC Box :
/usr/users/alex

[alex@DECBox]> stty -a < /dev/ttya05s

#2 disc;speed 9600 baud; 0 rows; 0 columns

erase = ^H; werase = <undef>; kill = ^U; intr = ^C; quit = ^\

susp = ^Z; dsusp = <undef>; eof = ^D; eol = <undef>; eol2 = <undef>

stop = ^S; start = ^Q; lnext = <undef>; discard = <undef>; reprint = <undef>

status = <undef>; time = 0; min = 1

-parenb -parodd cs8 -cstopb hupcl cread -clocal -crtscts

-ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl -iuclc

ixon -ixany -ixoff -imaxbel

isig icanon -xcase echo -echoe -echok -echonl -noflsh -mdmbuf -nohang

-tostop -echoctl -echoprt -echoke -altwerase -iexten -nokerninfo

opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel tabs -onoeot

dtr = on; dsr = off; rts = on; cts = on; dcd = on



The most notable differences that I would guess would affect it are :
	On DECBox, eol = <undef>, whereas on SCOBox, eol = ^@ (Null
Character)
	On DECBox, icrnl is set (Map carriage-return to newline on input).
	On DECBox, onlcr is set (Maps newline characters to
carriage-return/newline characters).

However, any attempts to change these settings on the DECBox, i.e. :
	stty -icrnl -onlcr eol ^@ < /dev/ttya05s
		-or-
	stty -f /dev/ttya05s -icrnl -onlcr eol ^@

...fail to do anything, unless I am already connected (using cu) to
/dev/ttya05s from another terminal.  Then, when I dis-connect from the port,
the settings change back to the originals.  Does anybody know enough about
stty and/or termcap settings to tell me how to change the default settings
on this port????

If there's no way to do it this way, can I add some sort of filter to the
printcap file that will open the serial port, change the stty settings, and
THEN pump the data through?

If you've read all the way to the end of this message, thanks for your
patience!

Alex Nord
Systems Admin
Jabil Circuit
alex_nord@jabil.com

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

end of thread, other threads:[~1998-05-19 16:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-09-20 17:25 stty question Jure Jerman
  -- strict thread matches above, loose matches on Subject: below --
1998-05-19 16:58 Alex Nord
1996-03-19 12:28 Geert.VAN DEN EEDE

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