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

Moving a point in direction i want using Ncurses

I want to move a point in the direction I want in linux terminal but it is not happening a/c to my wish I am not able to find out where I am missing. Here is my code` #include #include using namespace std; int main() { int…
0
votes
1 answer

ncurses field_buffer returns unchanged initial string

After editing text in field I press Enter, I expected to get edited value, but unchanged string was received. I was tried initialize field by non c_string buffer with spaces at free characters, same results. I have no clue why it happens. Similar…
biv
  • 1,613
  • 3
  • 13
  • 21
0
votes
3 answers

How To Make A Function That Returns An Ncurses Function

I am Completely new to programming. I am trying to make a very basic Ncurses game. My problem is that I have some very repetitive code where I take a string, calculate the length of it, divide it by 2, then subtract from the amount of columns. I do…
0
votes
1 answer

unbroken vertical line character - ncurses versus Java

I'm finding it impossible to programmatically produce an unbroken vertical line character (|) when working in a text-based terminal session. I've tried various Unicode characters - U+2502, U+007C, U+01C0, U+2223, U+2758 - to no avail. I thought it…
LiamF
  • 523
  • 3
  • 13
0
votes
3 answers

Why multiple definitions? Why are other references not defined? This is really basic, what am I missing?

I have a small project that I need to compile. I have one header and one source that I have created and a nearly empty driver.c that includes my header. Observe: // iol.h #ifndef __IOL_HEADER #define __IOL_HEADER /* program: iol.h date: 5…
Gus Crawford
  • 1,017
  • 8
  • 18
0
votes
1 answer

undefined reference to `initsrc' collect2: error: ld returned 1 exit status

$ gcc -o autott autott.c -lncurses /tmp/cciOHP4W.o: In function main': autott.c:(.text+0xa): undefined reference toinitsrc' collect2: error: ld returned 1 exit status I have installed ncurses, but it still return this error. Why?
Larry.L.Li
  • 11
  • 3
0
votes
2 answers

Errors building ncurses 6 in AIX 64 with gcc

The configure command issued errors when called with the default settings (like as with the 64 bits flags). But the built libncurses worked in both versions (32 and 64 bits). Should I worry about this error ? Default settings: configure && make…
Luciano
  • 2,695
  • 6
  • 38
  • 53
0
votes
1 answer

Displaying text files

I'm trying to display the "Phrack" text files. The problem is that the screen doesn't clear before displaying the text file. And overwrites whatever is on the screen at the time. I've tried printf() declarations, like printf("^[[2J") and…
user2411434
  • 109
  • 1
  • 4
0
votes
0 answers

Implementation of threads and ncurses together.

I have a test programm from my programming course, it must to be a console game like a across the street. It's look like ┌###################################################################┐ X X X X …
Anton Barinov
  • 23
  • 1
  • 5
0
votes
3 answers

How do I link PDCurses to a C++ application on Windows?

I'm building a C++ application and need to use PDCurses on Windows. I'm compiling with VC++ from MS VS 2005 and I'm getting a link error. error LNK2019: unresolved external symbol __imp__GetKeyState@4 referenced in function…
oz10
  • 153,307
  • 27
  • 93
  • 128
0
votes
1 answer

Run curses terminal application after PAM authentication failure

I have installed pam_script.so into my /lib/security/ folder and created a simple curses application at /etc/security/onsessionopen which executes whenever I attempt to login. The script is executed, this much I know, but the terminal is not altered…
tetris11
  • 817
  • 2
  • 11
  • 27
0
votes
2 answers

Curses breaks a time.sleep() when terminal's size has been changed

I faced with behavior which I cannot understand. import curses import time myscreen = curses.initscr() y, x = myscreen.getmaxyx() i = 0 while y >= 24 and x >= 80 and i <= 23: myscreen.addstr(i, 0, 'Python curses in action!') …
0
votes
1 answer

Ncurses from sources and Urxvt don't get along

After installing ncurses from sources, my urxvt is not functioning well. Opening applications likencmpcpp or mutt will give me Error opening terminal: rxvt-unicode-256color. Also opening zsh on urxvt will give me weird keypress behavior, like…
villasv
  • 6,304
  • 2
  • 44
  • 78
0
votes
2 answers

Displaying log data in latest-first format

I like having log data in a last-first form (the same way most blogs and news sites organize their posts). The languages I'm most comfortable in are C++ and Python: is there a way to output log data either to the screen (stdout) or a file with the…
warren
  • 32,620
  • 21
  • 85
  • 124
0
votes
2 answers

Walking caret BASH

I have been working on a little typing game that creates a random string, explodes that string, and watches for input to match the displayed characters. Thanks to all the help i've received here on SO i'm sooo close... but. I am totally stumped. My…
rimraf
  • 3,925
  • 3
  • 25
  • 55
1 2 3
99
100