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

Console application with real time information

I'm creating a console application in C++, and for this the user is interacting with the window in different ways (for which I use ncurses). At the same time, I need some way to show system messages during debug (especially), but that would disrupt…
BobaFettus
  • 11
  • 1
0
votes
1 answer

Installing Vim: What is the difference betwen "--with-local-dir" and "includedir"

My main goal is that I want to understand how parameters works in ./configure. So, I decided to install ncurses and vim in $HOME/local/, so, as to not affect my system. while configuring vim, I looked into --with-local-dir and includedir. I want to…
0
votes
0 answers

Print multibyte characters to stdscr/program window NCURSES

Currently I try to simulate matrix rain using C and NCURSES. I need to print multibyte characters to the program window using NCURSES. I have function that return random chars 12784-12799 range from Unicode. These are Japanese characters converted…
0
votes
1 answer

Python SUblime Text 3 Curses

I am trying to run a python file named cursesDb.py, but I get an error. That File import curses library, but when I use the sublime text editor, I can't run my program because an error occurs in this file: /usr/lib/python3.7/curses/__init__.py. I am…
0
votes
1 answer

delwin does not delete the window

I'm using Rust for my ncurses app. When the user presses F5, line numbers window should be toggled. When the user presses the F5 key for the first time, the window appears as it is supposed to. However, on second key press, the window does not go…
adder
  • 3,512
  • 1
  • 16
  • 28
0
votes
2 answers

wbkgd does not set background color

I'm using Rust to write an ncurses app. I'm trying to set the color of a subwin, however having no success. I'm not even sure the window is created in the first place, or it just doesn't want to set the color. Here's a minimal example: use…
adder
  • 3,512
  • 1
  • 16
  • 28
0
votes
1 answer

(ncurses) - Does mvwaddch() make calls to wrefresh()?

I'm working on a small game project and by mere curiosity I commented the line that makes a refresh to the main WINDOW object. while(game->state) { //Move into player params->mov = player_1; params->x = player_1->pos_x; …
Kolt Penny
  • 164
  • 1
  • 13
0
votes
0 answers

What may cause the coordinate in chaos of Ncurses

I developed a project in Ubuntu with the help of Ncurses: https://github.com/YvesZHI/FallingCode Basically, it is very similar with cmatrix. It prints some characters dynamically on the terminal with the help of the API of Ncurses, such as move(),…
Yves
  • 11,597
  • 17
  • 83
  • 180
0
votes
1 answer

SIGWINCH, bash, dash, tput, and terminfo

I'm a little confused about the interaction between tput and terminal sizes. It seems that the behavior of tput depends on the shell under which it is invoked, or perhaps the shell is responsible for changing terminal settings, or.... something. …
William Pursell
  • 204,365
  • 48
  • 270
  • 300
0
votes
1 answer

NCurses stdin redirection

I don't understand why the getch() function returns ERR all the time if I have an application set up in this manner (stripped to the bones): static char data[DATA_SIZE]; // Very big - covers all input for sure int main(int argn, char ** argv) { …
Pietro
  • 13
  • 4
0
votes
1 answer

Read Unicode characters using get_wch

I'm writing an ncurses app with Rust. I want the user to be able to input Unicode (UTF-8) characters. Besides printing them to screen, I am going to build up a search string from the characters. Here's a minimal example: use ncurses::*; fn main()…
adder
  • 3,512
  • 1
  • 16
  • 28
0
votes
2 answers

Match only valid UTF-8 characters

I'm writing an ncurses app with Rust. When the user inputs a valid UTF-8 char (like ć, or some Asian letters), I want to build up a search string from it and print it to screen. Currently I have this: use ncurses::*; fn main() { ... let mut…
adder
  • 3,512
  • 1
  • 16
  • 28
0
votes
1 answer

How to return Ctrl+M from ncurses getch()?

I am writing an application using ncurses and trying to get a CTRL-M keypress from the keyboard. Ncurses is returning CTRL-J (aka \n) whenever I press CTRL-M (aka \r), so I suspect somewhere it is doing a CRLF translation. My program is running in…
Alcamtar
  • 1,478
  • 13
  • 19
0
votes
3 answers

Strikethrough text in ncurses

I am developing a terminal TUI application for myself using the ncurses library. (Running on Linux) I cannot seem to find much info regarding the use of a "strikethrough/strikeout" text attribute when adding a string to a ncurses window using addstr…
Michael
  • 115
  • 10
0
votes
1 answer

how to correct AttributeError

i have imported ncurses but it shows me this error Traceback (most recent call last): File "C:\Users\jai.best-PC\Desktop\the real snk game.py", line 1, in import ncurses File "C:\Python27\lib\ncurses.py", line 8, in
me_jaiii
  • 1
  • 1