Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!sun-barr!cs.utexas.edu!uunet!mcvax!hp4nl!rivm!llocp From: llocp@rivm.UUCP (Charlos Potma) Newsgroups: comp.sys.hp Subject: Re: Starbase Question Summary: use curses for dialog Keywords: Starbase, Scrolling dialog region Message-ID: <1365@rivm05.UUCP> Date: 7 Jun 89 15:44:31 GMT References: <40983@bbn.COM> Organization: RIVM, Bilthoven, The Netherlands Lines: 32 In article <40983@bbn.COM> fkittred@BBN.COM (Fletcher Kittredge) writes: > I would like to write a Starbase application which works on hp2393a, > hp2397a, hp2623a and hp2627a terminals. This application needs to > have two screen regions: a graphics region and a scrolling dialog > region > ...deleted... > I have tried to set this up by calling gopen() on the device twice, > each time storing the file descriptors. I then call set_p1_p2(), > view_port(), and view_window() on each of the file descriptors, > setting up two seperate windows, one with the coordinates of the > graphics region, and one with the coordinates of the scrolling region. > ...deleted... Perhaps an easy solution for mixing a graphics region and a scrolling dialog region is to use starbase for the graphics region and curses for the scrolling dialog region. The advantage of using curses (with normal writes) is of course portability of this part of your application. An important aspect of mixing graphics and alphanumeric information in this way is to flush the starbase buffer at the right moments by using make_picture_current. Otherwise the graphics and alfa info could get "out of sync". Charlos Potma National Institute for Public Health and Environment Laboratory for Air Research mcvax!rivm!llocp