Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!ames!sgi!ciemo@bananapc.wpd.sgi.com From: ciemo@bananapc.wpd.sgi.com (Dave Ciemiewicz) Newsgroups: comp.sys.sgi Subject: Re: questions about tn3270 on the Iris 4D's Summary: tty setting problems Message-ID: <37783@sgi.SGI.COM> Date: 11 Jul 89 22:39:33 GMT References: <8907111146.AA19403@lerc08.lerc.nasa.gov> Sender: daemon@sgi.SGI.COM Organization: Silicon Graphics, Inc., Mountain View, CA Lines: 51 In article <8907111146.AA19403@lerc08.lerc.nasa.gov>, fsfacca@LERC08.LERC.NASA.GOV (Tony Facca) writes: > John, > > I picked up the tn3270 stuff from your system and with only a minimal amount of > effort, was able to get it running on all of the Iris 4D's (including the > Personal Iris). I have a couple of questions about it. > > 1) When I call the tn3270 program from a "toolchest" type window, using > "wsh -blah -blah -c /usr/local/bin/tn3270 hostname" > > Everything works just fine except that when I press the "delete" key on > the middle section of keys, the window is aborted due to a bad key mapping > (or unexpected interrupt). However, if I just do "tn3270 hostname" from > the command line, this problem does not exist. Any ideas on where to look?? > ... > -- > ----------------------------------------------------------------------------- > Tony Facca | phone: 216-433-8318 > NASA Lewis Research Center | > Cleveland, Ohio 44135 | email: fsfacca@lerc08.lerc.nasa.gov > ----------------------------------------------------------------------------- The problem "delete" key problems occurs because the tty modes are set incorrectly for the wsh. When you launch the tn3270 wsh from the shell command line, the wsh clones off the tty settings from the shell's controlling pty. When you launch the tn3270 wsh from a 4Sight toolchest, there are no tty settings to clone since 4Sight does not have a controlling tty. Since, there are no tty settings, you get default settings for the wsh pty. In this case, the default setting probably has the interrupt character set to DEL. A solution to this differing behaviour between shell and 4Sight launching behaviors should be available in the forthcoming 3.2 release. Until that time, you might try a shell script called "tn3270.stty" containing the following: #! /bin/sh stty intr ^C #... other favourite tty settings /usr/local/bin/tn3270 Have your toolchest launch the wsh with tn3270.stty instead of /usr/local/bin/tn3270. Hope this helps. -- =============================================================================== Form: 27B-6 Submitted by: Central Services Operative, DC-473 Task: Duct repair Status: Emergency ===============================================================================