151 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
-1
votes
1
answer
67
views
Retrieve character in windows buffer
I would like to be able to get the character in the buffer windows.
Like the contrary of waddstr ?
int main(void)
{
initscr();
printw("LINES = %d\n", LINES);
// Now y=0 / x=...
1
vote
1
answer
60
views
Using init_color on the eighth index and using a color pair with black foreground and bold attribute uses the new color
I want to set a new color orange for later use but print out something in grey (color black + attribute bold) now, but that specific combination changes to the new color instead.
#include <curses.h&...
2
votes
1
answer
76
views
Error with including pdcurses while compiling a C proj
I have a test-2.c file in which I have included curses.h
#include "pdcurses/curses.h"
The pdcurses folder is in the same directory as my .c file
How do I compile it using gcc?
I want to ...
0
votes
0
answers
89
views
CMake can't find curses library
I am on Windows and use MinGW, I installed packages from its setup-installer.
CMake file:
cmake_minimum_required(VERSION 3.26)
project(Progetto-Programmazione-12CFU)
set(CMAKE_CXX_STANDARD 17)
...
0
votes
1
answer
75
views
Error Installing PDCurses (from PDCursesMod) for wincon: The system cannot find the file specified
I am trying to install PDCurses (from https://github.com/Bill-Gray/PDCursesMod) on my Windows 10 laptop, and although I believe I am following the instructions I am having no luck.
My steps: Open ...
-1
votes
1
answer
135
views
weird ncurses behaviour compared to pdcurses
I am working on a text editor project that uses pdcurses for tui
here is the code : https://github.com/abdelrahman1215/simple-txt.git
but since it uses pdcurses it was only availible on windows , so i ...
2
votes
2
answers
195
views
detection of mouse hovering using pdcurses
I am making an implemintation of conway's game of life using c and wanted to make the game highlight the cell the mouse in hovering over but i can't seem to be able to catch mouse movements even ...
1
vote
1
answer
272
views
How do I switch from LLVM to MSVC with Visual Studio?
I'm using a dependency that requires MSVC to work (I'm not sure why; that's just what the docs said), and I'd like to switch from Clang/LLVM to Visual C++ (MSVC) to make it work. How do I do this ...
0
votes
0
answers
67
views
How to allow normal handling of CTRL+C on Windows using PDCurses?
As by the docs, I built PDCurses for Windows 32-bit using MinGW 14.1.0, outputting pdcurses.a. Apparently the mode nocbreak() should let CTRL+C be handled as a signal, closing the program, so I wrote ...
0
votes
1
answer
291
views
Rust's pancurses library is opening a new terminal instead of running in the current terminal
I'm hoping to develop a cross-platform CUI using a curses library in Rust called "pancurses", but I'm encountering a strange problem in windows. For some reason, instead of running the CUI ...
2
votes
2
answers
1k
views
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 ...
2
votes
2
answers
126
views
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 (...
0
votes
0
answers
392
views
mingw32-make cannot find standard C libraries
I'm trying to install PDCurses for Windows using MinGW and CodeBlocks. I'm using this tutorial as I'm hopeless at installing things, so I need a straight-forward explanation. But when I run mingw32-...
0
votes
1
answer
175
views
Why mvprintw works only after getch?
mvprintw/mvaddch (pdcurses) print text only after getch() (even if it is not connected in any way and the getch is in detach thread).
A question from a different angle: How can i use mvprintw() in a ...
1
vote
2
answers
694
views
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 ...