help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How does one use curses.h? it works better now


From: Dan Smithers
Subject: Re: How does one use curses.h? it works better now
Date: Thu, 22 May 2008 15:59:27 +0100
User-agent: Thunderbird 2.0.0.14 (X11/20080505)

Lionel B wrote:
> On Mon, 19 May 2008 17:30:45 -0700, David Chmelik wrote:
> 
>> Lionel B wrote:
>>
>>> Yes; these error messages are not from the compile, but from the link
>>> phase, and probably mean that you have not linked in the library
>>> containing the actual code for the functions referenced. So to link
>>> code for ncurses, you will probably have to specify -lncurses somewhere
>>> on your gcc invocation (this is documented in `man ncurses').
>> Thanks; it compiles now.  However, it does not do exactly what I try to
>> make it do.  I am trying to make a roguelike game just to practice
>> various algorithms, and the part I was working on is moving the '@'
>> around the screen with the arrow keys and move().  Right now it just
>> prints control sequences when I use the arrow keys.  I already tried
>> this part of the code in DOS Watcom C/C++ and it worked... maybe it is
>> the wrong screen mode.  Any suggestions on where to read about screen
>> modes and keyboard I/O for Posix systems?

You probably need to use
keypad(win, true) in the config section.

I've not tried it, but I noticed it in while sorting out a curses
display recently.

dan


reply via email to

[Prev in Thread] Current Thread [Next in Thread]