Questions tagged [ncurses]

A system library which allows a text-based GUI environment at a shell. It supports windows, text, colors, and more. Many programs use ncurses.

Official website

Alternatives:

50 questions
82
votes
3 answers

How do I install ncurses header files?

I was trying to configure the kernel and I got the following error. Can somebody please tell me what I should do? root@nitr-desktop:/usr/src/linux# make menuconfig *** Unable to find the ncurses libraries or the *** required header files. ***…
54
votes
6 answers

Is there a file explorer/manager for the command line?

I would like to know if there is something like DOS interface for Ubuntu. I mean a "GUI" that can run from the console (for example if you are using Ubuntu Server). Some file explorer like Nautilus but in console.
22
votes
4 answers

How to install libncurses.so.5 in Ubuntu 20.04?

I need both 32 bit and 64 bit for libncurses.so.5 on Ubuntu 20.04 (Focal Fossa) for building an Android application on an older Android NDK. What are my options? libncurses.so.5 is not on apt-get anymore.
eri0o
  • 816
13
votes
1 answer

How to add the ncurses.h to a C++ program compiled on gcc?

I am totally new to C++ programming on gcc. I wanted to add color to my text on the output on the console. Since there is no conio.h on linux, I researched and found that ncurses.h could do the trick. Now the only problem is that I do not know how…
11
votes
1 answer

trying to install libncurses dev package for ubuntu 14.04

I am trying to install libncurses for Ubuntu 14.04. But, it is showing the following error: root@sharwariDell:/usr/src# sudo apt-get install libncurses5-dev Reading package lists... Done Building dependency tree Reading state information...…
11
votes
3 answers

Where do I get ncurses man pages from?

I can't find the ncurses man pages even after: sudo apt-get install libncurses5-dev
Jake
  • 270
8
votes
1 answer

How to get screen size through python curses

I'm writing a terminal program and need to get the size of the TTY I'm using. The Internet seems to suggest this can be done with curses, but I can't seem to find out how in python. I'm trying to avoid using the ROWS and COLUMNS environment…
daubers
  • 103
7
votes
1 answer

Wireless Network Manager command line ncurses GUI

Is there any software that can manage wireless network connection using ncurses? So I just installed Ubuntu Server 17.04, trying to connect via wireless, but iwconfig not installed, so I install wireless-tools, copy the .deb via usb drive, then run…
Kokizzu
  • 518
6
votes
1 answer

Why can't I use conio.h or ncurses.h?

I am new user to Ubuntu. I wrote a simple program in C. When I try to compile it to use conio.h, the compiler gives me fatal error. So I tried by ncurses.h, but still I am getting same error.
amol
  • 81
  • 1
  • 1
  • 4
6
votes
3 answers

Unable to find ncurses library

I've run into a problem with Wine/winetricks, where I get the following error: Wine cannot find the ncurses library (libncurses.so.6). However, running sudo apt install libncurses6 just gives me a notification that the package is already…
hiigaran
  • 6,843
4
votes
1 answer

How do I create simplistic window-like elements in a command-line program?

When I execute sudo dpkg-reconfigure lightdm in the terminal I see a simplistic window-like listmenu. Is there an way to make something like that in C++? This looks something like:
4
votes
1 answer

Unable to locate package ncurses

I was trying to install ncurses on Ubuntu 22.04.1 LTS with the following line: sudo apt-get install libncurses6-dev libncursesw6-dev I get this output: Building dependency tree... Done Reading state information... Done E: Unable to locate package…
4
votes
2 answers

How to make `ncdu` show a quick summary of disk usage and exit?

I'd like to make the ncdu NCurses Disk Usage tool analyze a path, display the output, and exit, for scripting purposes. Normally it is a human-interactive tool, but I'd like to remove the human-interactive part of it. If I run ncdu /boot I can see…
Gabriel Staples
  • 11,502
  • 14
  • 97
  • 142
3
votes
1 answer

Problem Ubuntu putting out characters in both UTF-8 and ISO-8859-1

I use PuTTY to connect to my Xubuntu system. When I set the translation to UTF-8 the fancy output from systemd looks fine but a ncurses application show up oddly. When I set the translation in PuTTY to ISO-8859-1 (Western European) the ncurses…
3
votes
1 answer

How to get rid of purple background color in newt apps?

For some reason newt apps (whiptail, partimage, debconf ...) have all decided to use purple background. How to get regular blue background back ? $ whiptail --title 'WARNING' --yesno "Completely unsafe, proceed anyway ?" 8 50 At first i thought…
lemonsqueeze
  • 1,664
1
2 3 4