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
0 answers

ncurses doesn't support wide char in Xcode

I'm trying to run this code in Xcode. I get the error for the following function call mvaddwstr(row, col, shade); Cannot initialize a parameter of type 'const char *' with an lvalue of type 'const wchar_t *' Use of undeclared identifier 'mvaddwstr';…
user_185051
  • 426
  • 5
  • 19
0
votes
1 answer

How to moving fields in forms of ncurses

I've written a program in C using ncurses and specially forms. I need that a particular field of my form moves as I'm filling the form. I tried move_field, but it doesn't work. Here is how I wrote it : if (typact==ADSD && rowc>rowg ) { …
JiPaul B.
  • 11
  • 1
0
votes
1 answer

ncurses can't display element on x y position from structure

I'm trying to display an robot with ncurses. When x & y are printed with printf all is ok, but with mvwprintw(window, x, y, "a"); nothing is displaying. What is the problem? File: view. #include #include "config.c" #include…
snow
  • 5
  • 1
  • 1
0
votes
0 answers

Is it possible to refresh screen while waiting for user to input a string in ncurses?

I'm working on a typing game written in C and ncurses. The game asks player to enter lines of text. If the input from the user is identical to the string, it then continue to ask the user to enter next line of string. And I want to show a timer on…
0
votes
1 answer

How can I change the ESCDELAY value for C ncurses when I'm statically linking the libraries at compile time?

I have a program that I wrote using the C ncurses library. In this program, near the top I have this line: ESCDELAY = 0; This line is used to remove the delay that comes when pressing the escape key in ncurses. I can compile this program normally…
0
votes
0 answers

Ncurses gives different colors on different platforms

Ncurses gives me blue color in MacOs for RBG tuple init_color(COLOR_NAVY_BLUE, 0, 0, 139);which is desired. But when running the same program on linux color is yellow. Why colors are different and how can I make it unified across platforms? Both…
Mateusz Wojtczak
  • 1,621
  • 1
  • 12
  • 28
0
votes
0 answers

c programming ncurses.h "KEY_ENTER" not being registered by program

I am writing a program where I want the user to click the "enter" key in order for the program to continue. So I use the following code int ch = getch(); while(ch != KEY_ENTER){} This code works with literally every other ncurses keys such as…
Ryan Keough
  • 121
  • 1
  • 8
0
votes
1 answer

easy way to get and print input onto window

I'm developing an app in C using ncurses, I want a box where I can get user input, only problem is, I can't find a way to do it that works the way I need it to. For example, the closest ive come is the mvwgetnstr() routine, however this doesn't…
SamBkamp
  • 65
  • 8
0
votes
1 answer

using ncurses without installing it

I am working on a project which uses ncurses. I am wondering if there is a way to use this library without installing it on a machine? What I mean is that instead of installing it, is there a way to have .h files and compile them in a makefile and…
user12340167
0
votes
1 answer

Python Curses update_panels() and Panel.move() issues

I'm trying to learn how to use Python Curses (and hopefully build a simple game), but somehow I cannot get curses panels to work. Specifically, when I try to update_panels(), my script (below) immediately exits directly back to the prompt. import…
abmx
  • 1
0
votes
1 answer

Can't compile ncurses and string at the same time

I'm currently learning how to use c++ and ncurses. Following a tutorial on Youtube I couldn't kepp up because of an error caused when I'm trying to compile my cpp file. The name of the file is Select.cpp so I'm using the command line gcc -o SELECT…
0
votes
2 answers

changes not showing in field in ncurses

I have a ncurses program which is a login menu and I use field for username and password. The problem is that when I type something in the fields, characters register but do not show in terminal. In other word if you execute the code blow and type…
user12340167
0
votes
0 answers

Debugging ncurses application in Eclipse IDE (Linux)

I'm creating an ncurses application in the Eclipse IDE (for C/C++ developers), running on Linux Mint. I'm able to successfully launch the application in the gnome terminal from Eclipse, via an external tool configuration, as per the following…
Ksawery
  • 23
  • 5
0
votes
1 answer

In python curses, how i can get string from user and print on the screen in same time

I used the curses library in Python to divide the screen into two part, the first half to print a set of strings and the second half to get the user input by using getstr() , but when the user enters the ipnut curses interrupt the entry and clear…
0
votes
1 answer

WASD movement with ncurses (Not sure why it doesnt work)

I wanted to create a program with what i had just learned in ncurses. With it the user should be able to draw with a # in the screen using WASD. this is the code i did: #include #include int main (void) { initscr(); …
Pablochaches
  • 968
  • 10
  • 25