1,921 questions
Advice
0
votes
4
replies
58
views
How to capture rapid Esc typings in ncurses
int main (){
initscr();
cbreak();
noecho();
keypad(stdscr,true);
nodelay(stdscr,true);
while (1){
ch = getch();
if (ch == 27){
int ch2 = getch();
if (ch2 == ERR){
...
3
votes
2
answers
115
views
Bold box style in ncurses
I am trying to make a user interface and want to print the button that is selected as bold. I looked for internet but I did not find anything meaningful
I tried to make with:
wborder(this->win,
...
3
votes
1
answer
152
views
Why does my 2D Vector of C strings not output the element at the given index? [duplicate]
Technically its a vector<vector<vector<const char *>>> but I'm using it as a vector<vector<cstrings>>
I have been stuck at this issue for weeks and I do not understand it....
5
votes
1
answer
163
views
Controlling color of menus in ncurses
I am working on a program to create menus with colors using ncurses on Linux:
#include <stdio.h>
#include <stdlib.h>
#include <ncurses.h>
#include <ncurses/menu.h>
int main() {...
0
votes
0
answers
63
views
Color used by terminal or ncurses when terminal resized?
Under Linux, is there a standard on how a terminal using ncurses (or ncurses itself) handles setting the color contents for the new area of an expanded terminal window?
It appears the last background ...
2
votes
1
answer
58
views
cross compiled app using ncursesw6 - some systems show no version information available and some of the colors are different
I built a ELF64 (x86_64) console app on a Debian based 686 OS that uses ncursesw6. When I run it in Fedora 42 x86_64, I get:
./myappx64: /lib64/libtinfo.so.6: no version information available (...
1
vote
2
answers
115
views
Different colors on WIndows than on Linux in ncurses
I am creating an ncurses program in C++, where I redefine colors. But the colors are completely different on Windows than on Linux. On Linux, the colors work fine and look as intended. But on Windows, ...
0
votes
1
answer
245
views
Non-Blocking ncurses getch() in Java FFM
I have a Rust function named init that calls the following ncurses functions (in the following order): initscr(), cbreak(), keypad(stdscr, TRUE), getch() followed by endwin().
The init function looks ...
1
vote
1
answer
123
views
How do I build an application that depends on cdk and ncurses on MacOS Sequoia 15.5?
I am attempting to build the open source project RpcExplorer on MacOS Sequoia 15.5 (Apple Silicon) and encountered the errors below.
This project built fine on at least MacOS 14, and I have not tried ...
0
votes
0
answers
91
views
Accepting events in ncurses from user input and other threads while blocking until one is available?
Is there such a thing? Since I heard that ncurses doesn’t support multithreading, I’m currently looking for another way to update the screen from both user input and events sent by other threads. For ...
1
vote
1
answer
118
views
Getting data for mouse held down in ncurses
I'm trying to detect when the left mouse button is held down using ncurses in C++. I know that to check if the mouse button has been pressed we can use the bstate bitmap like so: event.bstate & ...
-1
votes
1
answer
70
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
85
views
How to return ctrl+v with ncurses?
I'm trying to make a text editor in C for windows (11) using ncurses, as far as i can tell I've gotten every other input working but ctrl+v still pastes from the clipboard.
i already have raw and nonl ...
1
vote
1
answer
100
views
ncurses stopped showing colors; mis-use of init_pair()?
In my program I display the output on the screen using ncurses (just characters in specific places on the screen, no advanced features). Previously, it worked. I did not install, uninstall, change any ...
1
vote
1
answer
440
views
PyCharm force "Emulate terminal in output console" for specific script
In our team we all use PyCharm as IDE and the default is to run scripts in Run Console.
However, Run Console doesn't support curses.
I'm distributing some code through GitHub to other people and I'd ...