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

Pythons Curses Library and Resizing

I have been working on a terminal GUI using python and Curses for the past few days and feel I am not making any progress. Right now what I need to do is create two panels that both take up half the screen minus 1 - 2 characters as a margin. I want…
IdecEddy
  • 87
  • 1
  • 16
0
votes
1 answer

Recognize linux distribution in conan

I created a Ncurses conan package for some projects where I use Ncurses. I use a conanfile.py for configuration. Now I have the problem that under Centos terminfo is in /usr/lib and under Debian-based system it is in /lib. Therefor I have to set an…
Thomas Sablik
  • 16,127
  • 7
  • 34
  • 62
0
votes
1 answer

Porting ncurses app to IOS

I have several ncurses apps that I would love to run on my iPad. However, I don't know if this is possible. Can anyone provide thoughts? The apps are mostly financial data related and do graphing, back testing, etc.
Jasmine
  • 15,375
  • 10
  • 30
  • 48
0
votes
1 answer

Using dialog_fselect to select file

I want to use dialog_fselect for selecting file in c++ console application. I wonder how I get the result path of dialog_fselect? For example when I run: dialog_fselect("Path", "", getmaxy(main_window)-10, getmaxx(main_window)-10); How I could get…
Aryan
  • 2,675
  • 5
  • 24
  • 33
0
votes
1 answer

Using example ncurses code, but need clarification

I'm compiling some c code using the ncurses library, under gcc and Fedora. The code is copied exactly from http://techlister.com/linux/creating-menu-with-ncurses-in-c/1293/ It compiles fine but as I manipulate the code I wanted to understand some…
mike65535
  • 483
  • 2
  • 10
  • 21
0
votes
0 answers

How to move a FIELD which is inside a WINDOW

I'm new to stackoverflow.com so I'll do my best to explain my problem :) I'm currently working on an "arcade game" project for my school and I have made a menu using ncurses where I can choose games / graphical library to use. I have made this menu…
Maxime B.
  • 1
  • 1
0
votes
1 answer

Properly update class members

I am trying to write a program solving 5 dining philosophers problem. I am on the beginning, so for now I want every philosopher to just think, eat, without any synchronization, looking at forks etc. This is what I wrote: #pragma once #include…
minecraftplayer1234
  • 2,127
  • 4
  • 27
  • 57
0
votes
1 answer

Add a line in Ncurses

Is there a function in ncurses to add a line and move the text after the cursor to that new line? I am using insertln () now and that moves the entire current row down, but I would like behavior closer to vi when hitting enter in the middle of a…
Kevin Gardenhire
  • 626
  • 8
  • 22
0
votes
2 answers

Read a line from the screen with ncurses

How do I read a line of text printed on a pad in ncurses? I am trying to use the ncurses function winchnstr. I am confused about how to use chtype* in the function. I understand that chtype is a long int, but when I use chtype in my code I get a…
Kevin Gardenhire
  • 626
  • 8
  • 22
0
votes
0 answers

Ncurses - wgetch(window) not showing output

I've been struggling to get any input from Ncurses working. The keyboard input works fine if I use stdscr rather than my custom window. However, if I use the stdscr, I get absolutely no output to the terminal. Here is my compile argument: gcc -o…
briang0
  • 1
  • 1
0
votes
1 answer

ncurses program won't run on debian armv7

Can somebody here help me with ncurses for armv7 (x86)? I just want to run on Debian my C++ program uses ncurses It has error "Error opening terminal: xterm." I used this installation guide:…
Anzipex
  • 69
  • 10
0
votes
1 answer

How can I use readline inside of a ncurses application?

I'd provide some input features inside of the ncurses application I'm currently working on. I want to show the readline prompt by pressing some key, maybe ESC and then letting the user edit the line. The problem is, I don't know how to display it…
L.Integra
  • 149
  • 1
  • 11
0
votes
1 answer

_curses.error: setupterm: could not find terminal, Raspberry Pi

Every time I run this script on my Raspberry Pi: import curses import RPi.GPIO as GPIO GPIO.setwarnings(False) GPIO.setmode(GPIO.BOARD) motor1a = 7 motor1b = 11 motor1e = 22 motor2a = 13 motor2b = 16 motor2e =…
0
votes
0 answers

Can't install ncurses on Ubuntu

I'm trying to install ncurses on my Ubuntu for 1 hour and I don't find any issue... sudo apt-get install libncurses5-dev libncursesw5-dev Lecture des listes de paquets... Fait Construction de l'arbre des dépendances Lecture des informations…
pierreafranck
  • 445
  • 5
  • 19
0
votes
0 answers

How do I get the readline() to work in an ncurses window?

I have a small test program as follow trying to get a two window ncurses screen to work with readline(). When I call readline(), the typing works, but I can't see it. Somehow the echoing is lost. With the getch() (if you don't #define READLINE) then…
Alexis Wilke
  • 19,179
  • 10
  • 84
  • 156