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
3
votes
0 answers

CMake can't find PDCurses on MinGW

I'm trying to build a curses program that uses CMake on Windows with MinGW and PDCurses. I'm using CMake 3.7.1, and all my MinGW packages are up-to-date. Specifically, i have mingw32-libpdcurses 3.4-1 (both dev and dll) and mingw32-pdcurses 3.4-1…
zale
  • 1,248
  • 11
  • 26
3
votes
1 answer

How to install hscurses on Windows

I'm trying to install hscurses on Windows 7. From the readme, it has a dependency on pdcurses. I downloaded and extracted pdcurses (curses.h, panel.h, pdcurses.dll, pdcurses.lib) in a folder and then ran this cabal command from a git-bash…
2
votes
1 answer

How do I turn off or ignore key repeat for my curses application?

So I recently found curses (specifically PDcurses) and I'm just getting into it. Right now I'm trying to write a little space shooter type game with it and it's worked fine so far for rendering and getting menu type input, but now when I go into the…
Evan C
  • 141
  • 10
2
votes
2 answers

How to fix the width and height of the window using curses in Python?

According to this link, https://docs.python.org/3/library/curses.html, the description for curses.resizeterm(), it should be possible to fix the width and height of my terminal window to a fixed values of my interest, no? I wrote a simple code…
2
votes
2 answers

pdcurses installation has a type declaration error

I'm making a text-based game in C using the pdcurses library (version 3.4). I'm following a tutorial for the installation of pdcurses, and the tutorial uses version 3.4. If I download a newer version (e.g. 3.9), it seems to be a completely different…
Hartsaxena
  • 48
  • 5
2
votes
1 answer

PDCurses wont compile on windows

I am trying to compile PDCurses, but when it attempts to compile pdcscrn.c it gives the error message ../wincon/pdcscrn.c:93:5: error: unknown type name 'PCONSOLE_SCREEN_BUFFER_INFOEX'; did you mean 'PCONSOLE_SCREEN_BUFFER_INFO'? …
CocoKitty
  • 27
  • 3
2
votes
0 answers

How to install PDCurses with MinGW on Windows?

I have looked all over the internet for installation instructions but could not find one that actually worked. I have downloaded the MinGW-Get application as stated in many websites, but have no idea how to use it. I did find a website with the…
Tina
  • 179
  • 1
  • 3
  • 13
2
votes
1 answer

How do I add curses to cmake?

I'm having some problems with adding an external library to my project in CLion and everything I found regarding this topic didn't really get me any further. I have these files…
sbstnzmr
  • 401
  • 7
  • 21
2
votes
1 answer

VS2015 Additional Include Directories not finding included header?

The question title says it all. Here is the project settings for my addition include directories. Here is my current program #include int main() { initscr(); /* Start curses mode */ printw("Hello World !!!"); …
cgasser
  • 603
  • 2
  • 11
  • 24
2
votes
2 answers

How do I get stream input during execution of another while loop in c++

I am writing a game in c++ that uses pdcurses to get input from the user and display continuously changing status of the player on the command line terminal. I use a while loop to continuously update the player's health (a number value), which is…
JasonArg123
  • 188
  • 1
  • 1
  • 14
2
votes
1 answer

Can't convert from 'int' to 'int *'

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,…
flarn2006
  • 1,787
  • 15
  • 37
2
votes
2 answers

KEY_ENTER vs '\n'?

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

Using 3rd party libraries in Visual Studio 2013

Recently, I have started using MS Visual Studio 2013. However, I have not been able to use a 3rd party library, particularly PDcurses. When I follow the usual advice to "go to linker, add the lib in input. Then put the path in general", no errors…
a cut
  • 51
  • 7
2
votes
3 answers

How to Raise KeyboardInterrupt When Inside Curses

Using the curses module on Windows (via this PDCurses), I am trying to break on a KeyboardInterrupt exception, but it doesn't raise when I press ctrl+c. Some distilled code: from curses import wrapper items = ['a', 'very', 'long', 'list', 'of',…
mhlester
  • 22,781
  • 10
  • 52
  • 75
2
votes
1 answer

Background colour of player character (@) overlapping other tiles

I'm making a rogue like game using pdcurses in C++ and all it's going ok at the moment. But I'm facing a problem right now that I don't know how to solve. Let's see a screenshot of the problem for better understanding: As you can see, if you zoom…
Kactung
  • 690
  • 2
  • 8
  • 21
1
2
3
9 10