Questions tagged [ncurses]

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

The Ncurses (new curses) library is a free software emulation of curses portable to most terminal systems. It uses Terminfo format, supports pads, color, multiple highlights, forms, characters and function-key mapping, and has all the other SYSV-curses enhancements over BSD Curses.

See also: -

1850 questions
0
votes
1 answer

Ncurses displays garbage when using printf in while loop

I am creating a Snake game on Linux. I was using iostream to that point when I realized I need a getch() function included within the ncruses.h. I had a draw method which was printing all board elements to the console while using std::cout and every…
0
votes
1 answer

Ncurses is included on Cygwin, but getch() doesn't work. Says it's an undeclared identifier

I am using Cygwin, and am trying to write a game trainer. I would like to be able to have a user simply press a key to enable/disable features, and not have to press enter afterwards. It seems like getch() from the ncurses library should be able to…
sasschary
  • 1
  • 1
0
votes
1 answer

Unable to hook ncurses functions with LD_PRELOAD

I'm trying to hook some ncurses functions but they don't have any effect. ncurses isn't statically linked, so I don't see why it wouldn't work. test.cpp #include #include #include int main() { initscr(); cbreak(); …
0
votes
2 answers

Linux Ncurses Pad Smearing ( Text Scrolling Attempt )

I am experimenting with the code below in an attempt to learn how to use and control a scrolling pad. when the Z key is pressed the pad scrolls up which is good. The problem is that it "smears" as it does so. As it scrolls up the bottom line…
Hakachukai
  • 90
  • 6
0
votes
1 answer

Linux C Ncurses issue

I'm having a strange problem with Ncurses in C that I can't seem to find documented anywhere, nor on the web. Maybe I'm not using the correct search terms? Here is the problem: I have several windows and panels and LOTs of code. It all works…
Hakachukai
  • 90
  • 6
0
votes
1 answer

Curses string and char manipulation problems

Hey so i'm trying to get addstr() in the pdCurses library to work (windows curses) with the preferred string class so i made the function the following string_to_80char() function, which is supposed to take a string and return an 80 character long…
Griffin
  • 2,399
  • 7
  • 48
  • 83
0
votes
0 answers

Switching to raspberry pi cross-compiler breaks ncurses

I'm trying to compile a short test program for my raspberry pi in CLion. I've set up two toolchains, one that compiles with gcc and g++ so I can test the program locally, and one that compiles with the raspberry pi cross compiler using…
socks
  • 1
  • 1
0
votes
0 answers

Ncurses and C++ string concatenation not working properly

I'm trying to display a statusbar using ncurses with "---" between items, like most terminal programs do. I have the following code so far: #include #include #include #include using namespace std; int main()…
Pille
  • 57
  • 2
  • 8
0
votes
1 answer

How to use mvprintw with array of pointers to strings

Im trying to use mvprintw to print out words from an array. However no matter what I try mvprintw seems to be non functional. #include #include #include #include #define MAX_WORD_LENGTH 12 /* The…
0
votes
1 answer

C programming ncurses colors on multiple windows not working

I'm working with ncurses on Linux, I have created two windows (winReception and winTransmission) basically winTransmission is for writing stuff to print in winReception. So, I'd like to print the text in winReception in certain color but it's not…
KanerDev
  • 23
  • 6
0
votes
1 answer

Scanning input from USB device with NCurses in Cygwin

Working on a lab for school, where we have to take the gyroscope values from a PS4 controller and move an avatar around the screen in NCurses with Cygwin using C. Currently I have a scanf() statement scanning in the data from the PS4 controller that…
Z-M
  • 1
  • 1
0
votes
1 answer

Using ncurses terms is giving me an error

I want to continually check for keyboard presses to control a character. After some research i saw people recommended ncurses for mac so I tried this but it did not go well. I made a test to see if it worked but I get the error message "Undefined…
0
votes
1 answer

Segmentation Fault while using wrefresh function of ncurses in C

First of all, I create two windows with ncurses : one for transmission and one for reception. Basically, one to write the command and the other to print the command. To write the input in the reception window i did a little function to concatenate…
KanerDev
  • 23
  • 6
0
votes
1 answer

export DYLD_LIBRARY_PATH causes libncurses.5.4.dylib not loaded error

On my OS X 10.7.4 Mac I do: export DYLD_LIBRARY_PATH=/usr/local/lib:$DYLD_LIBRARY_PATH But afterwards I get this sort of errors: dyld: Library not loaded: /usr/lib/libncurses.5.4.dylib Referenced from: /bin/ls Reason: Incompatible library…
Terry
  • 1,206
  • 1
  • 10
  • 26
0
votes
1 answer

Library not loaded: /usr/lib/libncurses.5.4.dylib error on OS X 10.7

I'm trying to update the ncurses-5.4 to ncurses-5.9 on Mac OS X 10.7. I've built ncurses-5.9 ./configure --prefix=/usr/local/ncurses-5.9 --with-shared To do the update: sudo mv /usr/lib/libncurses.5.4.dylib /usr/lib/libncurses.5.4.dylib_BACKUP sudo…
Terry
  • 1,206
  • 1
  • 10
  • 26