Mail bounced - RE display on last line
Posted in 1993
> > Is there a way to print a message to a specific line on the screen even > if that line is not in the current window? We are opening a window, and > want messages generated to always appear on line 24 (rather than the > last line of the window, which may not be screen line 24.) These messages > will include help, errors, function key definition. > > We tried using an embedded C function and the curses library but it always > got returned to the last line in the *current* window. > > We also tried changing the current window, writing the message, then changing > back but this took too much time re-drawing all the window stuff and looked > bad (all the flashing re-draws.) > > We are running Informix OnLine version 5.0, 4GL version 4.1 under Ultrix > version 4.2A running on Digital DECsystem 5000/240. The application will > use Digital VT340 terminals. > Had this same problem with a clock in the upper corner once. What I wound up doing (pretty kludgy) was defining a function which set current window to be the background window and displayed the time. Unfortunately I couldn't get it to reset the window using a passed in variable and had to 'manually' reset the window each time I called the function, e.g.: CALL disp_time() CURRENT WINDOW ... hope it helps j. _____________________________________________________________________________ Jack Parker - Contractor | Hewlett Packard, BSMC Boise, Idaho, USA| If you keep staring at it like that, jparker@hpbs2561.boi.hp.com | your nose is going to grow (208) 396-5388 (W) (208) 384-1623 (H) | into the bark. _____________________________________________________________________________ Any opinions expressed herein are my own and not those of my employers. _____________________________________________________________________________