Path: utzoo!attcan!uunet!mcsun!ukc!mucs!liv-cs!rkl From: rkl@mva.cs.liv.ac.uk Newsgroups: comp.sys.hp Subject: Reading cursor keys in HP Pascal (I use curses) Message-ID: <3463@mva.cs.liv.ac.uk> Date: 17 Nov 89 10:22:01 GMT References: <415@bnrunix.UUCP> Organization: Computer Science CSMVAX, Liverpool University Lines: 25 In article <415@bnrunix.UUCP>, rick@bnrunix.UUCP (Richard Johns X7191) writes: > Hi. Anyone know how to read the cursor keys from HP Pascal? > I'm running HP/UX 6.5 (so far) on a 9000/300. TIA. Interesting question, this one. I solved it by using curses linked into the Pascal. Even then, it appears that the timeout supplied by curses for parsing escape sequences (1 second) is way too short and I had to end up parsing them myself (sometimes curses WOULD parse it correctly and other times it would return the full escape sequence back). I assume intelligent folks out there already know how to link (and use !) the curses library into HP Pascal...it's not for the faint-hearted (and the LINES and COLS external integers are extremely difficult to read - I've ended up with C 'glue' routines hich are also linked in). In actual fact, I've written my own USENET News reader using curses in HP Pascal - am I the only one who hates rn ?? On a different note, why doesn't HP Pascal have any bitwise operators between integers such as AND, OR and XOR ?? Or have I missed something here ? Richard K. Lloyd, **** This is a MicroVAX II running VAX/VMS V5.1 **** Computer Science Dept., * JANET : RKL@UK.AC.LIV.CS.MVA or * Liverpool University, * RKL@000010500211.FTP.MAIL * Merseyside, England, * Internet : RKL%mva.cs.liv.ac.uk@cunyvm.cuny.edu * Great Britain. ****************************************************