I'm building a C++ application and need to use PDCurses on Windows. I'm compiling with VC++ from MS VS 2005 and I'm getting a link error.
error LNK2019: unresolved external
symbol __imp__GetKeyState@4 referenced
in function __get_key_count
There are 11 errors all with the same error code and different symbols. The missing symbols...
I'm looking for tutorials on using PDCurses library. Unfortunately there is text only documentation, which is more like function reference. Are pdcurses similar enough to ncurses to use ncurses tutorials??? Any tips for making console UI's ???
PS. PDCurses - mingw32.
...
Hello all,
I am making a very simple platform independent(at least that's the plan) console app. I changed from conio.h to pdCurses to make it happen. The problem with that is that in Windows, using Codeblocks and gcc I have a problem.
When I include I get tons of errors. They all concern 3 macros all located in different source files...
Hello,
I am having a problem compiling pdcurses 3.4 in my machine. My OS is windows XP SP3.
My mingw32-make is version 3.81.
According to the readme file all I had to do was go and issue a make command to get it done. And so I did.
mingw32-make -f mingwin32.mak
This starts the make process but it fails somewhere along the way in t...
I'm extremely sorry to post such an embarrassingly newbish question, but I haven't mucked around much with C++ since my college days and I think at some point I drank all that I knew about pointers and C++ strings right out of my head. Basically, I'm creating a C++ console app (a roguelike, to be precise) with PDCurses to handle output....
So I'm working with PDCurses, and would like to have more control over the colors I can use in my application. I know I can change the definition of the eight predefined colors with init_color(), but I would like a few more colors to play around with. Is there some way to define custom colors without using one of the slots taken up by ...
I'm trying my hand at throwing together a minor roguelike in C++, but I've run into a problem - in order to get the game to display correctly, the console window has to be a bit wide (around 45 rows, 115 cols). It's easy enough to change by right clicking on the menu bar and setting the defaults for windows with the same name, but is th...
I'm getting the error:
1>LINK : fatal error LNK1104: cannot open file 'LIBC.lib'
Here's my source code:
#include <curses.h>
int main()
{
initscr(); /* Start curses mode */
printw("Hello World !!!"); /* Print Hello World */
refresh(); /* Print it on to the real screen */
getch(); ...
Is there a Windows equivalent of ncurses for PHP?
I've created a CLI script and want to display various statistics (currently processed record, completion percentage etc.) in a nice way, without outputting loads and heaps of text to the cmd.exe window.
The ncurses extension doesn't work on Windows.
...
When I'm using PDcurses and I try to have a while loop exit when the enter key is pressed with while(key != KEY_ENTER), the while loop never exits. However, when I try to have the same loop exit with while((char)key != '\n'), it exits successfully whenever I pressed enter. Why does '\n' work and not KEY_ENTER?
btw, key is an int
and I ...
So I have these lines of code:
int maxY, maxX;
getmaxyx(stdscr, &maxY, &maxX);
It gives me the following error:
error C2440: '=' : cannot convert from 'int' to 'int *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
twice for each time I use it. I'm not even using...
Okay, so I'm getting these warnings whenever I try to use stdscr in pdcurses:
LINK : warning LNK4098: defaultlib "LIBC" conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4049: locally defined symbol "_stdscr" imported
LINK : warning LNK4049: locally defined symbol "_SP" imported
How do I fix this? They're j...
I have downloaded pdcurses source and was able to successfully include curses.h in my project, linked the pre-compiled library and all good.
After few hours of trying out the library, I saw the tuidemo.c in the demos folder, compiled it into an executable and brilliant! exactly what I needed for my project.
Now the problem is that it'...
So I'm making a snake game with teleports and the usual mice. I had a loop running like this:
while(snake.alive() && miceEaten < micePerLevel)
{
displayInfo(lives, score, level, micePerLevel - miceEaten);
//some code
if(miceEaten())
{
//update score...
}
//more stuff...
}
The problem with the above code...