Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!mailrus!tut.cis.ohio-state.edu!ucbvax!hplabs!hpfcdc!hpfcmgw!garys From: garys@hpfcmgw.HP.COM (Gary Stringham) Newsgroups: comp.sys.hp Subject: Re: Starbase Question Message-ID: <1080059@hpfcmgw.HP.COM> Date: 9 Jun 89 15:02:20 GMT References: <40983@bbn.COM> Organization: HP Fort Collins, CO Lines: 25 > ...which works on hp2393a, hp2397a, hp2623a and hp2627a terminals.... > if((graphics = gopen("/dev/screen/HP2397a", OUTDEV, "sox11", > INIT |RESET_DEVICE)) Are you talking to terminals? If so, then you want open device "/dev/tty" and driver "hp262x". If you are on an X11 system, then thats a different animal. Just create one window for graphics and one for text. Assuming that you are talking to terminals, then you can use the memory lock as Bob Niland suggested. Move the cursor to the top of the screen, clear the screen, then move the cursor to the spot on the terminal where you want the dividing line to be and set memory lock, then move the cursor to the bottom of the screen. These can be done using standard HP Terminal Escape Sequences. Then only open one graphics window and use set_p1_p2, view_port, etc, etc, to only address the top portion. Then using your standard graphics commands, send stuff to the graphics window. For the scrolling text stuff, just use your standard output statements like you would use to send any text stuff to a terminal. It will scroll up to the dividing line and disappear. When the program exits, turn memory lock off so that the full screen will be in use. Otherwise, the user will have to turn it off using the softkeys. Gary Stringham