delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/12/07/21:08:51

From: wozzle!alane AT imageek DOT york DOT cuny DOT edu
Subject: Re: help with libcurses
To: imageek!scrsu1.SINet.SLB.COM!combee (Leendert Combee)
Date: Tue, 7 Dec 1993 19:00:31 -0500 (EST)
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu

>   o Anyone using curses (part of contrib to djgpp) ? I'm having some
>     problem with proper response of getch(). The curses libraray on
>     the SUN station I use comes with cbreak() to handle keystrokes
>     properly, but I couldn't find the equivalent anywhere in curses
>     or the djgpp libs.

If I remember how I wrote it, you should be forced into raw mode with
nothing you can do about it (echo() may work, I can't remember). What
exactly is wrong - it is reading the DOS keyboard and then returning
a K_ value as defined in the .h file (NO it's not SYSV compatible, but
I had nothing but Ken Arnold's original article when I wrote it).

I spoke to DJ and he suggested using PDCurses.

I don't plan on doing any more support in terms of development unless
I need it for myself (not likely, really). However, I think it's all
pretty clear -- the keyboard stuff is in ckbdintf.c -- look for #ifdef
__GNUC__.

Good luck in your endeavors. 

-- 
J. Alan Eldridge (alane AT wozzle DOT linet DOT org)


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019