ITEM: AA2706L

tty enq problem



Question:

On my 3.2.5 system I am trying to use stty with discard option and
need some assistance.

Response:

ENV:  AIX 325 ; Model 990 ; 128-PORT ; Terminal Server ; Wyse50 terminals
.DESC: Customer has written an application which requires the use of the
"stty discard" command. He is setting it to: Ctrl-F see below:
.sttysave=`stty -g`
stty discard \^F 
stty -echo
print '\^E'
read ans
stty "${sttysave}"
print ans
. 
The problem is that the stty -g is not recalling the original setting back to
Ctrl-O which is causing a problem with his application. The terminal being 
used is a Wyse50 and it has the answer back code set to "200\^M".
.ACT:  I had him run stty -a after the "read" and showed to be set to Ctrl-F
which is correct. 
I then had him run crash on the port and it also showed a Ctrl-F. He said that
the problem was only when he ran his application from a PC emulating a Wyse50
and that the actual Wyse50 terminal worked fine.
.I've tested this here on my 323Ext system and it works fine...
Ctrl-F right after the read and Ctrl-O when the script finishes. Also tested
on a 325 system with the latest tty drivers and it worked there as well.

Response:

Nat has written a C-program to get around his problem. As I mentioned earlier,
I have gotten his script to function fine here on a 325 system. 


Support Line: tty enq problem ITEM: AA2706L
Dated: July 1994 Category: N/A
This HTML file was generated 99/06/24~13:30:32
Comments or suggestions? Contact us