Re: Interrupt key in Dynamic-4GL
Posted in 1998
I set my interrupt to Control-C, so that now that I type stty -a, I get intr = ^C. I commented the following lines #gui.useOOB.interrupt=0 #fglrun.signalOOB=21 #gui.key.interrupt= "Delete" so default of Control-C will be used. I'm running the client piece on a Windows 95. Now, when I start the WTK session, i get a telnet session in which I log in. I have FGLSERVER and FGLGUI set and then I start my application. Another window is started, so I have 2 windows running at once. Now, I'ms not sure if this is normal behavior. The control-C still does not work. However, if I switch to the initial window in which I logged in and initiated the application and press Control-C on that window it works. I've read somewhere I think in manual or release notes that you need to change this when running SCO Openserver. I'll play with it some more. Plus, when changing the interrupt key, I checked that Delete or CTRL-C did generate an interrupt. Candy -- Candy McCall ONLINE Computing, Inc. (candym@olcinc.com) >Oh? What is it set to according to 'stty'? And where are you running >the client piece -- on the SCO box or on a PC somewhere? > >> In $FGLDIR/etc/fglprofile, I have set: >> >> gui.useOOB.interrupt=0 >> fglrun.signalOOB = 21 > >On my Solaris box, 21 corresponds to SIGURG (urgent socket condition). >I've not run into any problems leaving these as the default values. I >don't normally use other than the defaults; I use control-c for my >interrupt key. Did you change them because you needed to? Try just >commenting them out. > >> gui.key.interrupt= "Delete" > >So, are you using the delete key to do interrupts? Have you checked that >what you think is the delete key is what D4GL thinks is the delete key? >Do you know what character code is generated by your delete key? Is it >ASCII DEL = \\177 = 0x7F = 127? > >> When I press the Interrupt button, that works. > >OK. > >> It doesn't recognize the "Delete" key when I press it. I've tried >> commenting out the "gui.key.interrupt" line, so that it will default to >> Control-C and changed my tty setting, > >Changed what in the tty setting, and to what? I assume you did 'stty intr >"^c"' or thereabouts. And you checked that typing "^c" at the keyboard >does indeed generate an interrupt? > >I've just experimented with the D4GLDEMO code (downloadable from the IDN >web site if you haven't already got it -- see my signature), and I got the >delete key on my keyboard (which does generate ASCII DEL) to work by: > >1. stty intr ^? >2. vi fglprofile (in the with sub-directory) > -- add gui.key.interrupt = "Delete" >3. Run runwith. Go to Customer, One-Add. > Hit ^C -- nothing. > Hit Delete -- interrupt detected. > One-Add again; hit interrupt button -- interrupt detected. > >Note that I've not done anything with the OOB values. > > >> I [am] running SCO OpenServer 5.0.4. > >I am using a Sun Sparc 20 running Solaris 2.6 and 7.24.UC1 ESQL/C running >against 7.24.UC1 OnLine. > >Yours, >Jonathan Leffler (jleffler@informix.com) #include <witticism.h> >Guardian of DBD::Informix v0.59 -- http://www.perl.com/CPAN >Informix IDN for D4GL & Linux -- http://www.informix.com/idn > >