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
201
votes
10 answers

How do I get the 'clear' command in Cygwin?

I installed Cygwin, choosing a fairly minimal set of packages. In a terminal, I tried to do 'clear' to clear the terminal, but I get bash: clear: command not found How do I get this to work?
88
votes
14 answers

How to make win32 console recognize ANSI/VT100 escape sequences in `c`?

I'm building a lightweight version of the ncurses library. So far, it works pretty well with VT100-compatible terminals, but win32 console fails to recognise the \033 code as the beginning of an escape sequence: # include # include…
Witiko
  • 3,167
  • 3
  • 25
  • 43
73
votes
1 answer

How can I hide the cursor in ncurses?

I am writing ncurses programs in C and C++. I have not found a way to conceal the cursor to the user. I have looked around on the internet a bit, but most of the information that I have found either concerns Python/Ruby implementations of (n)curses…
fouric
  • 1,598
  • 1
  • 19
  • 37
72
votes
2 answers

Is ncurses available for windows?

Are there any ncurses libraries in C/C++ for Windows that emulate ncurses in native resizable Win32 windows (not in console mode)?
gio
  • 883
  • 2
  • 8
  • 12
69
votes
7 answers

CLI pdf viewer for linux

Hey, for quite a while now, I am looking for a pdf viewer for the command line. As I like to work without X on Linux, and often work on a remote machine, I would like to have a tool to read pdfs. There are quite a lot of really good graphical…
bitmask
  • 32,434
  • 14
  • 99
  • 159
42
votes
4 answers

Where can I find a complete reference of the ncurses C API?

Where can I find a complete reference of the ncurses C API?
nonpolynomial237
  • 2,109
  • 4
  • 27
  • 35
39
votes
2 answers

Fill an ncurses window with a color

I only have a basic knowledge of ncurses, and I was unable to find an answer to this question in the man pages. When you set the foreground and background color for a window, is there a way to fill the whole window with the background color?
38
votes
3 answers

What is the difference between xterm-color & xterm-256color?

I've come across both xterm-color and xterm-256color as options when trying to set up my terminal program to use color - i.e. you can set your TERM environment variable to either one. I was wondering if anyone can describe the difference between…
user12345
  • 2,876
  • 2
  • 24
  • 25
35
votes
5 answers

In-place progress output in the terminal or console

When you run git clone, it updates progress in place. For example, the percentage of the objects received changes in place. user@athena:~/cloj/src$ git clone git://git.boinkor.net/slime.git Initialized empty Git repository in…
dan
  • 43,914
  • 47
  • 153
  • 254
34
votes
3 answers

gcc /usr/bin/ld: error: cannot find -lncurses

I am running Ubuntu 12.04 and I'm currently working on a project involving C, OpenGL, a teapot and input methods. The problem started when I decided to have arrow keys as input. I checked to see the key codes for arrow keys but all of the arrows…
Yrrej10
  • 341
  • 1
  • 3
  • 3
31
votes
1 answer

How to get ncurses to output astral plane unicode characters

I have the following piece of extremely simple code, which is supposed to output (amongst other things), three unicode characters: /* * To build: * gcc -o curses curses.c -lncursesw * * Expected result: display these chars: * …
GodEater
  • 3,445
  • 2
  • 27
  • 30
29
votes
3 answers

Non-blocking getch(), ncurses

I'm having some problems getting ncurses' getch() to block. Default operation seems to be non-blocking (or have I missed some initialization)? I would like it to work like getch() in Windows. I have tried various versions…
Jonas Byström
  • 25,316
  • 23
  • 100
  • 147
29
votes
2 answers

Python ncurses, CDK, urwid difference

What's the difference between these 3? As far as I understand it they both provide binding to curses which is the C library for terminal text-based UI. I currently have no knowledge of any of the 3 and I've never used curses. Which one would you…
s5s
  • 11,159
  • 21
  • 74
  • 121
27
votes
2 answers

How Do ncurses et. al. Work?

There are several libraries like ncurses that assist in making command-line GUIs. Simply put, how do they work? My first thought was that ncurses intercepts all keyboard input, and draws each "frame" by outputting it line-by-line normally. Closer…
Maxpm
  • 24,113
  • 33
  • 111
  • 170
26
votes
4 answers

Undefined reference to `initscr' Ncurses

I'm trying to compile my project and I use the lib ncurse. And I've got some errors when compiler links files. Here is my flags line in Makefile: -W -Wall -Werror -Wextra -lncurses I've included ncurses.h Some layouts : prompt$> dpkg -S…
BoilingLime
  • 2,207
  • 3
  • 22
  • 37
1
2 3
99 100