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
2
votes
2 answers

pdCurses use in Windows, messes with 3 gcc macros

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…
Lefteris
  • 3,196
  • 5
  • 31
  • 52
2
votes
1 answer

PDCurses Win32a -- how to build on Windows 7

PDCurses-Win32a quite clearly claims that its implementation of init_color() works on Windows; but when I built it as a DLL in a Visual Studio project (after nmake failed, saying it couldn't find something called "rc"), it didn't. What do I need to…
ExOttoyuhr
  • 667
  • 1
  • 8
  • 21
1
vote
1 answer

menu.h && form.h doesn't exist in pdcurses

Writing C in Visual Studio 2010, I have downloaded the pdcurses34 from the sourceforge. After i compiled the lib for win32 as the documentation says i configured the visual studio to use this library. Then started to read this HOWTO for ncurses…
F.N
  • 401
  • 4
  • 21
1
vote
1 answer

Menus library with PDCurses

I'm currently learning to program with NCurses/PDCurses by reading this tutorial: http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/ But when I get to chapter 17 which is about the menus library, I'm getting kind of stuck. #include doesn't…
user914372
1
vote
0 answers

Disabling Windows Alt-Codes in PDCurses

I was using PDCurses, and noticed that the library specifically defines the Alt-Numpad buttons. When implementing these buttons, however, I found that while using getch(), once you release the Alt-key it inputs the Alt-code you entered. Is there any…
Elliot Hatch
  • 1,038
  • 1
  • 12
  • 26
1
vote
1 answer

Why is only the reference to endwin() not defined, when compiling this example code for PDCurses?

When compiling the example hello-world.c for PDCurses, the linker can't seem to find the endwin() function only. Commenting out the line containing endwin(), the code compiles fine and the program runs. Here's the example code, taken from here (from…
JanS
  • 11
  • 4
1
vote
1 answer

How do I capture "CTRL + ARROW_KEY" with PD/NCurses?

While I figured out that I can just use something like #define ctrl(x) ((x) & 0x1f)2 for most plain ASCII (non numerical or [obviously] symbol) characters, I was unable to find any info or documentation on how to capture CTRL + ARROW_KEYS or any…
Giorgos Xou
  • 1,461
  • 1
  • 13
  • 32
1
vote
1 answer

Can't build 32-bit binaries on a 64 bit system

Intro While I'm able to build the binaries for my 64-bit windows system, i'm unable to find a way to produce the 32-bit ones, although i've tried many things I still get a banch of errors. Specifically what I'm trying, is to build PDCurses-3.9 under…
Giorgos Xou
  • 1,461
  • 1
  • 13
  • 32
1
vote
1 answer

Unit testing with NUnit and Console

I've been playing around with the curses sharp library (a c# wrapper for pdcurses), writing some unit test code to get a handle on the api and how it works, and I've come up with a question. I can run curses sharp from within a DLL (so that nUnit…
Frater
  • 690
  • 3
  • 12
1
vote
1 answer

Problems with curses C++

I've recently started to use PDcurses for Windows. I wrote a simple program that creates a window and moves a character according to the user's inputs, going up for 'w', down for 's' and so on. There are 2 weird things that happen: Whenever I move…
Fiabio
  • 11
  • 1
1
vote
1 answer

Set background color of entire window in PDCurses

wattron and a color pair only sets the background color of text when it is printed inside a window. What is the best way to set the background color of the entire window without filling it with spaces (i.e. a title or status bar)?
Smurf64
  • 337
  • 1
  • 6
  • 15
1
vote
0 answers

How to setup MinGW on Linux for using pdcurses?

I installed WINE (for testing and debugging the binaries without the need for Windows) and MinGW on a Linux for cross-compiling purposes, but when I try to compile anything that requires curses, MinGW complains that it cannot find the header file…
1
vote
1 answer

NMAKE : fatal error U1052: file 'Makefile.vc' not found

I'm trying to do the steps as mentioned in Install pdcurses on Visual Studio 2017, which tells me to boot up the Developer Command Prompt for my VS(2019), and write set PDCURSES_SRCDIR=D:\PDCurses-3.9\PDCurses-3.9(my path for PDCurses) but I was…
Rainier
  • 37
  • 6
1
vote
1 answer

pdcurses on windows - printw() doesn't print long strings (C) - ncurses works fine on linux - possible bug or is my implementation wrong?

The following is my code demonstrating that long strings fail to print with pdcurses. #include #include #define SIZE 256 void get_file_data(char *filename, char *file_data) { // CREATES POINTER TO FILE FILE *file; …
1
vote
2 answers

Detection of Keyboard and Mouse events for Screensaver C++

I am trying to build myself a simple screensaver in C++, with windows.h and PDCurses. A fundemental part of screensavers is closing the screensaver when the mouse is moved, clicked, or the keyboard is pressed... etc. I have tried to find a way for…
Eric Petersen
  • 77
  • 1
  • 7
1 2
3
9 10