[comp.unix.programmer] How to map the screen of a terminal without using the cursor library

ping@cubmol.bio.columbia.edu (Shiping Zhang) (01/01/91)

Happy New Year to everyone.
I want to know how to get the characters at different locations on the screen
of a terminal other than the control terminal. I want to control the screen
pattern of that terminal based on what is on the screen. Unfortunately the
cursor library seems only work on the control terminal. The routine initscr()
does not allow you to specify a terminal.  Thanks for any help.

-ping   ping@cubmol.bio.columbia.edu  (128.59.128.3)

allbery@NCoast.ORG (Brandon S. Allbery KB8JRR) (01/01/91)

As quoted from <1990Dec31.172424.27028@cubmol.bio.columbia.edu> by ping@cubmol.bio.columbia.edu (Shiping Zhang):
+---------------
| I want to know how to get the characters at different locations on the screen
| of a terminal other than the control terminal. I want to control the screen
| pattern of that terminal based on what is on the screen. Unfortunately the
| cursor library seems only work on the control terminal. The routine initscr()
| does not allow you to specify a terminal.  Thanks for any help.
+---------------

If you can find an AT&T terminfo-based curses, there is multiple-terminal
support in it.  Rather than calling initscr(), one calls a function that
returns a SCREEN pointer; there are then functions for changing the current
SCREEN, which then makes curses operate on that instead.  Curses will maintain
separate screen images for all SCREENs defined.

++Brandon
-- 
Me: Brandon S. Allbery			    VHF/UHF: KB8JRR on 220, 2m, 440
Internet: allbery@NCoast.ORG		    Packet: KB8JRR @ WA8BXN
America OnLine: KB8JRR			    AMPR: KB8JRR.AmPR.ORG [44.70.4.88]
uunet!usenet.ins.cwru.edu!ncoast!allbery    Delphi: ALLBERY