Questions tagged [pdcurses]

PDCurses is a public domain [tag:curses] programming library for DOS, Windows, X11 and SDL

While development of the original curses library halted in the mid-1990s, the development of ncurses and PDcurses continued.

PDcurses implements most of the functions available in the original X/Open and System V R4 curses. Development started in 1987 to support the editor THE.

It supports many compilers for these platforms. The X11 port lets one recompile existing text-mode curses programs to produce native X11 applications.

Read more.

144 questions
41
votes
3 answers

What is needed for curses in Python 3.4 on Windows7?

I have a running Python 2.7/3.4 installation on my Windows 7 (x64) machine. I would like to test curses on Windows. Curses is installed but not working: >>> import curses Traceback (most recent call last): File "", line 1, in
Paebbels
  • 15,573
  • 13
  • 70
  • 139
9
votes
2 answers

Curses for PHP on Windows

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…
demonkoryu
  • 1,247
  • 10
  • 27
9
votes
3 answers

curses library: why does getch() clear my screen?

I'm trying to learn the curses library (pdcurses, as I'm in Windows OS), with C++. I have a program that displays 3 windows, then a while loop to do some processing based in key presses captured by getch(). The loop gets exited when the F1 key is…
user2948911
  • 113
  • 1
  • 4
8
votes
3 answers

Console interface tutorials and tips (pdcurses)

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.…
M_1
  • 2,135
  • 4
  • 21
  • 24
7
votes
1 answer

Enabling curses in both Linux and Windows

I am working on small project in C++ and I am using curses for user interface. I am pretty nicely able to make it work in my arch-linux installation, because it is pretty simple to set up ncurses to work there. But with my cmake setting which is…
Jakub Peschel
  • 135
  • 1
  • 8
5
votes
3 answers

How do I install PDCurses in Windows for use with C++?

I want to use it in some of my programs instead of the standard IOStream. Also, does NCurses work on Windows, and if so, any better?
user1212347
  • 63
  • 1
  • 2
  • 4
5
votes
4 answers

Mysterious heisenbug?

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()) …
wrongusername
  • 18,564
  • 40
  • 130
  • 214
4
votes
1 answer

Check char at current/given position in PDCurses/NCurses

Is there a way to check which char is at a given position in the console window? For example if I want to check if there's an asterisk (*) at position (10, 12), how do I do that? Or if I use move(10, 12);, how do I check which char is at the current…
user914372
4
votes
1 answer

Does PDCurses and ncurses have the same syntax?

I'm building a game with ncurses in Linux. Can I "copy/paste" the code into Microsoft Visual Studio (properly set for PDCurses) and everything will run OK? Thanks!
NeoFahrenheit
  • 347
  • 5
  • 16
4
votes
2 answers

Install pdcurses on Visual Studio 2017

I was making a 2048 game on Code::Blocks, but due to debugging problems, I move to Visual Studio Community 2017. It seems that conio.h doesn't work there, so I'm trying to switch to curses.h library. I've read a lot of tutorials, but none of them…
NeoFahrenheit
  • 347
  • 5
  • 16
4
votes
1 answer

UniCurses pdcurses.dll Error

When trying to import the UniCurses package, I receive the error "UniCurses initialization error - pdcurses.dll not found." I have downloaded the pdcurses distributions (specifically pdc34dllw.zip) and extracted the files…
Watercleave
  • 183
  • 9
4
votes
1 answer

How to link curses.h in Cmake?

I know that maybe this is a silly question but I can't see through it, I searched for other answers here, that are pretty close to mine, but, still, I didn't understand how to do it. The problem is that I can't compile a 'C' program that uses…
Aster
  • 143
  • 2
  • 11
4
votes
1 answer

pdcurses linkage using Visual Studio 2010

This is doing my nut in. I'm just trying to include pdcurses (i.e. ncurses for windows) into a test program. Linkage though is failing. Using Visual Studio 2010. I'm fully aware of setting up the correct link additional libraries path and to list…
timlukins
  • 2,694
  • 21
  • 35
4
votes
2 answers

How to statically link a library in MSVC?

I am compiling my program in Microsoft Visual C++ 10, and it uses the PDCurses library. I have configured it to link against pdcurses.lib but when I try to run the application the system complains that it can't find "pdcurses.dll". It's not supposed…
Fernando Aires Castello
  • 1,203
  • 3
  • 17
  • 23
3
votes
0 answers

Importing external header files into VS Code

I've been wrestling with the .json settings in VS Code for some hours now and I'm pretty lost. All I want to do is link pdcurses to my project so I can start coding. I have intellisense set up, but the #include statement is throwing…
1
2 3
9 10