🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.misc
Article #152

curses library and printing on line 0

#152
From: Dan Troxel
Date: Mon, 21 Aug 1989 17:52
29 lines
1744 bytes
Convergent S-640 (MightyFrame II)
CTIX 5.2.22


I have 2 problems. Both using the curses library. When I want to print
one line 0, ( the top line on a GT,PT screen ), about half the time I can print
something on the top line. How do I force a clear screen so that I can access
all lines available on a PT/GT screen? This happens when I run UNIFY/ACCELL or
any of the WGS office software.

The second problem has to do with speed. I have a program that looks into
a users directory and puts the filenames up on the terminal screen. I then
highlight the first name on the screen. They can select a filename by using
the arrow keys, which moves the highlight bar up and down the screen. The
problem is that there seems to be a pause of a 1/2" second or so, every time
they use the arrow keys. What exactly should I be using to get the selection
of files, using the arrow keys, to be faster? All I use is getch() and
key_init() to poll for the arrow keys. The WGS Office software has a
windowing system that selects the files relatively fast, which I want
to emulate, but CTAM just hogs too much memory.


Any ideas or hints? I'm game for anything.

-- 
Dan Troxel @ Handwriting Research Corporation                  WK 1-602-957-8870
Camelback Corporate Center  2821 E. Camelback Road  Suite 600  Phoenix, AZ 85016
ncar!noao!asuvax!hrc!dan          zardoz!hrc!dan          hrc!dan@asuvax.asu.edu
Technical Details
Message-ID: <200536@hrc.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ames!ncar!asuvax!hrc!dan

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ames!ncar!asuvax!hrc!dan
From: dan@hrc.UUCP (Dan Troxel)
Newsgroups: comp.sys.misc
Subject: curses library and printing on line 0
Message-ID: <200536@hrc.UUCP>
Date: 21 Aug 89 17:52:14 GMT
Organization: Handwriting Research Corp. - Phoenix, AZ
Lines: 29