Skip to main content

Questions tagged [ncurses]

The ncurses package is a subroutine library for terminal-independent screen-painting and input-event handling.

ncurses
2 votes
1 answer
38 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 ...
abdelrahman Mohamed's user avatar
0 votes
0 answers
22 views

How to Implement Continuous State Switching with Spacebar in ncurses?

So i made this project called the Hassan Doodles which is just like my own version of Google Doodles but it didn't turn out how i wanted it as it failed to run the function Here is the code #include &...
Hamza Mohamud's user avatar
0 votes
0 answers
10 views

Ending Textbox when the user type ESC in ncurses with Python

General overview In a curses wrapper, I have a main stdscr. If I press : then I enter in a specific mode where I can type text inside a curses.textpad.Textbox. In my following MWE it work fine until ...
fauve's user avatar
  • 256
0 votes
0 answers
47 views

Chinese chars can not be displayed properly with ncursesw on MinGW(ucrt64) env

Recently I want to build a cross-platform tui program with C, using libncursesw. I tried to test multiple solutions as listed: (phenomenon talked below is the displaying result of string containing ...
RocketDev's user avatar
-1 votes
2 answers
64 views

ncurses C home and end keys

I'm doing a simple menu with ncurses. It works for cygwin, but not in linux - home or end keys end the program immediately. I think handling of excape (27) has something to do with it because if I don'...
NickSoft's user avatar
  • 3,275
0 votes
1 answer
51 views

ncurses cannot display wide characters with colour

attempting to print a unicode character. It does not work. Here is my code: #include <locale.h> #include <ncurses.h> int main() { setlocale(LC_ALL, ""); initscr()...
Ben Miller's user avatar
0 votes
1 answer
47 views

Ncurses c++ printing arrow codes in terminal instead of reading them

I'm in kali linux trying to do a simple cpp program using ncurses but whenever I try to read an arrow key press, the escape code appears on screen. I cannot figure out what might be happening. #...
Nico Perez's user avatar
1 vote
0 answers
51 views

Broken vertical cursor movement in custom text editor

I am trying to implement vertical cursor movement (up and down arrow keys) in my custom nano-like text editor, but I could not get it working properly and keep introducing new bugs. My text editor ...
ThatGuy. exe's user avatar
0 votes
2 answers
371 views

Busybox build fails with ncurses header not found in archlinux (spoiler: i already have ncurses package)

I am trying to build busybox from source, installed all the necessary dependencies, but build fails every time with ncurses header not found err. OS: Arch Linux x86_64 (On docker: archlinux image) ...
Suryansh's user avatar
0 votes
0 answers
22 views

ncurses bug using init_color and curs_set

Trying to manipulate colors using ncurses, I bumped into a weird bug. I want to set my own colors by changing color definitions using init_color. I also wanted to make the cursor invisible. That's ...
realhllcngn's user avatar
0 votes
0 answers
60 views

Inconsistency with mvwprintw in ncurses

I have written a Snake clone in C++ using the ncurses library. I have encountered a bug where at random the apple will not be printed to the screen. Here is the code: void Screen::print_apple(const ...
user avatar
1 vote
0 answers
39 views

I have a problem with terminal applications for Android [duplicate]

I wrote a code in C++ and with ncurses in an IDE for Android to test it on the terminal. The problem is when I use a different terminal. I used c4droid to compile the code with the option to export ...
FIM-92's user avatar
  • 11
0 votes
0 answers
23 views

Change Linux build from shared ncurses5w to static causes a symbol has different size in shared object message?

Because the older ncurses5w is becoming harder to find, I changed the build to use /usr/lib/i386-linux-gnu/libncursesw.a and added tinfo as a shared library to link with. However if I move the binary ...
user3161924's user avatar
  • 2,053
-1 votes
1 answer
57 views

Link problems in Rust undefined reference to `initscr'

I am working on a pseudo OS using Rust and c++, I am trying to detect the keys pressed using c++ with ncurses (I am aware that there is a similar crate for Rust) and in the build.rs I have the ...
GSB's user avatar
  • 1
0 votes
2 answers
142 views

Ncurses - How to handle terminal resizes for an image that is being updated in an infinite loop

I have a program utilizing ncurses to draw a window with a clock timer. It is constantly being refreshed in an infinite loop. It works as intended, however when I resize the terminal window, the ...
Coldchain9's user avatar
  • 1,585

15 30 50 per page
1
2 3 4 5
127