*BSD News Article 44481


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.uwa.edu.au!classic.iinet.com.au!news.uoknor.edu!news.ecn.uoknor.edu!paladin.american.edu!gatech!howland.reston.ans.net!news.starnet.net!wupost!news.utdallas.edu!corpgate!brtph500.bnr.ca!nrtphba6.bnr.ca!bcrkh13.bnr.ca!news
From: Simon Logan <S.Logan@NIREY002.bnr.co.uk>
Newsgroups: comp.os.386bsd.questions
Subject: problems with curses library
Date: 24 May 1995 13:23:39 GMT
Organization: BNR
Lines: 32
Message-ID: <3pvc0r$8qa@bcrkh13.bnr.ca>
NNTP-Posting-Host: bireh042.bnr.ca
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 1.1N (X11; I; HP-UX A.09.03 9000/712)
X-URL: news:comp.os.386bsd.questions

Hi folks,

I am using curses on an HP apollo 700. I was hoping somebody
could point me in the right direction with a problem I am having. 

Thanks in advance,
Simon Logan


curses.h defines the following keys


#define KEY_NPAGE       0522
#define KEY_PPAGE       0523
#define KEY_F0          0410
#define KEY_F(n)        (KEY_F0+(n))

when I type 'Page UP' or 'Page Dn' or function keys, I just get ^[6~ appearing 
in the window (but the cursor keys work ok). I have used
   keypad(stdscr, TRUE);

Also,
to access colour you have to send an escape sequence. The terminal control
user's guide says send a sequence like
      EC&v n S

I assume 'EC' is 'escape character' 
I have tried putting in 0x1b, and 'EC' and '^[' and typeing ESC in VED and
none of these work.

Any ideas?