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.
49
questions
0
votes
0
answers
26
views
How can I use C-n and C-p as shortcut in ncdu
I am using ncdu - NCurses Disk Usage on a Linux server node through CLI.
OS: Ubuntu 20.04.6 LTS , Kernel: Linux 5.11.0-43-generic
ncdu 1.14.1
I get used to Emacs keybindings and I never use arrow ...
1
vote
2
answers
349
views
ncurses installed... but won't compile code
I've recently returned to Xubuntu 22.04 after a brief stint on Fedora.
Under Fedora, I seemed to be able to install ncurses okay.
I could then simply write code and compile with commands like:
$gcc -...
2
votes
1
answer
3k
views
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 ...
0
votes
0
answers
67
views
cgdb destroys my terminal, sends lots of escape characters, then have to kill it. How to configure so it works?
cgdb is a better version of gdb using curses to draw colored text and show the current executed line. gdb works, but every time the program prints out text, gdb gets shifted, and you have to press ...
2
votes
2
answers
3k
views
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-...
2
votes
2
answers
5k
views
Can I use both systemd-networkd and NetworkManager, or is there an GUI/ncurses alternative to Network Manager?
I am getting used to netplan.io on my laptop after routinely uninstalling it for several years in favor of ifupdown.
This is probably far-fetched, but since it's running a desktop front-end (plasma), ...
2
votes
0
answers
589
views
Alacritty does not run ncurses programs such as ranger,vifm,cmus,etc
I installed alacrrity using snap and everything worked fine except for programs which rely on ncurses.
This is the error when attempting to run ranger:
Traceback (most recent call last):
File "/...
0
votes
1
answer
371
views
How to generate MakeFile from ccmake
I'm trying to install this library: https://github.com/fpeder/XKin
I cloned it into an xkin folder then I did the following:
cd xkin
mkdir build
cd build
ccmake ..
Then a terminal based GUI pops up ...
15
votes
2
answers
60k
views
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 ...
2
votes
0
answers
497
views
How to get 256 colors working in ncurses program
I am trying to run Listing 3-5 in the book Programmer’s Guide to NCurses by Dan Gookin (page 41).
#include <ncurses.h>
#define NEW_COLOR 1
#define RED 0
#define GREEN 750
#define BLUE 750
int ...
1
vote
1
answer
403
views
Are there some Text User Interface programs for ffmpeg and other?
fdisk seems to have a Text User Interface via Cfdisk.
But I would like to know if there are some other useful tools like this for, let's say: ffmpeg and maybe some other like mail clients, other than ...
0
votes
1
answer
100
views
ncurses cannot print consecutive symbols
If use the screen and keyboard attached to the server, it seems OK.
But if ssh to this server, it fails.
it is expected to print
+============================+
but it actually print
+=+
it seems ...
2
votes
1
answer
3k
views
Trouble installing ncurses
I've git cloned a program I need: https://github.com/dbdexter-dev/meteor_demod
When I try to compile it with make, I get a fatal error: ncurses.h: No such file or catalog
So I tried sudo apt install ...
2
votes
1
answer
141
views
Is there a file manager that can serially number files and subfolders in the currently viewed directory?
Is there a file manager that can serially number files and sub-folders in the currently viewed directory?
6
votes
3
answers
11k
views
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 ...
0
votes
1
answer
108
views
Python 2.7 script using curses being automatically backgrounded when halfdelay or cbreak is called
I am currently working on modernizing (was made on Trusty 14.04, modernizing for Bionic 18.04) a python script that uses curses to create a menu for a user. During the initial launch of the script ...
1
vote
1
answer
923
views
lib not found (ncurses)
I'm trying to compile this c++ project: https://github.com/YvesZHI/FallingCode
I've successfully compiled it on my Mac OS, however, when I try to compile it on my ubuntu16.04, I get errors as below:
...
1
vote
0
answers
221
views
Is there a text-based OSK for Ubuntu linux or nodejs?
I'm looking for a soft keyboard that runs inside a terminal session on the server-- i.e. TUI not GUI, for use with a touch-screen like phone or tab, using something like ncurses or blessed (node.js ...
0
votes
1
answer
2k
views
How can I resize a terminal screen with the python curses library?
I am trying to resize the terminal screen to a specific size (say 34X107) to run a python curse based program. I'm not able to figure out how to do it.
0
votes
1
answer
670
views
Automate keystroke enter in curses with command from bash
I don't see any solution to my problem in the existing aricles,so guys please help
I want to automate installation so i'm using the
sudo apt-get -y --force-yes install
the program that i want to ...
6
votes
1
answer
4k
views
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 ...
1
vote
1
answer
7k
views
Can't use ncurses libraries
It says it requires the ncurses libraries but I already have those installed.
$ make menuconfig
find vendors -mindepth 2 '(' -name .svn -prune ')' -o -type f -name Kconfig -print | sed 's:^:source .....
3
votes
1
answer
2k
views
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 ...
1
vote
1
answer
916
views
How to repair apt / auto upgrades?
I was trying to look at the differences between the two files that unattended upgrades was asking me about. And while resizing the windows, I accidentally hit to keep the old file /etc/apt/apt.conf.d/...
3
votes
1
answer
2k
views
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 ...
2
votes
1
answer
3k
views
vim binary with all libraries statically linked
I want to build vim with all libraries, which vim depends on, statically linked. Vim version is sufficient to run YouCompleteMe. I use the following flags with configure script:
$./configure --with-...
2
votes
1
answer
386
views
Passing Strings to /bin/login
I'm in the process of creating a login wrapper for /bin/login so that when you boot Linux you get a TUI Login instead of the bland login on the tty console. This will be just a bash script for this ...
2
votes
1
answer
2k
views
No module named _curses
I am very new to both Ubuntu and python. I am trying to run a code and getting : ImportError: No module named _curses.
I tried:
sudo apt-get update
sudo apt-get install build-essential
sudo ...
1
vote
1
answer
361
views
wicd-curses errors on fresh default 14.04 install
I have a brand new fresh 14.04 ubuntu install but cannot get wicd-curses to run. I can use wicd-gtk but I need wicd-curses to work as well.
ERROR
~ sudo wicd-curses
[sudo] password for ry:
...
0
votes
1
answer
887
views
Unmet dependency issues [duplicate]
I recently installed ncurses and from then on I have been getting similar errors while trying to install new libraries
You might want to run 'apt-get -f install' to correct these:
The following ...
1
vote
0
answers
970
views
Ncurses problem
I try to make my first program which use ncurses. The problem is that screen got clean when it meet first time ch = getch();
# include "sys/ioctl.h"
# include "ncurses.h"
# include "unistd.h"
int ...
1
vote
2
answers
3k
views
ncurses line-drawing not working on console
When I try to use a curses-based program on a virtual console, the line and box drawing part are not working, as below in the display when running dpkg-reconfigure console-setup. I'm using the the vga ...
6
votes
1
answer
47k
views
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.
4
votes
1
answer
2k
views
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:
0
votes
1
answer
263
views
After update to 14.04, ncurses seems to have bugs (cursor still visible in petris)
I just upgraded to 14.04, and wanted to kill time by playing some petris. Then I noticed this:
The problem also exists in other terminals. Is there some option I can set to get the terminal to not ...
11
votes
1
answer
63k
views
trying to install libncurses dev package for ubuntu 14.04 [duplicate]
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 ...
1
vote
1
answer
385
views
how to implement the functions which are defined inside the conio.h
I wanted to use the conio.h header file in one of my C codes but as we know the header file is not available for Ubuntu, what should we do if we want to implement the functions if the header file ...
1
vote
1
answer
36k
views
missing libncurses.so.5
I was installing free pascal IDE on Ubuntu 12.04 at x64 AMD. When i run fp file it says:
./fp: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or ...
10
votes
3
answers
4k
views
Where do I get ncurses man pages from?
I can't find the ncurses man pages even after:
sudo apt-get install libncurses5-dev
1
vote
1
answer
3k
views
specify non-printing keys as input to shell command
Ubuntu 12.04 LTS Server 64
I have a shell script that runs in unattended mode.
The script executes a command that displays a curses/ncurses UI which normally expects the user to navigate a menu via ...
2
votes
0
answers
312
views
Is there an ncurses tool for upstart similar to ntsysv or sysv-rc-conf?
I'd like to be able to use a terminal or console to configure runlevels. I don't need the conditions for starting and stopping services to be any more complicated than sysv. I just want to base ...
75
votes
3
answers
252k
views
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 ...
3
votes
1
answer
6k
views
error while compiling speech_tools can not find -lcurses
I get the following error when compiling speech_tools.
/usr/bin/ld: cannot find -lcurses
/usr/bin/ld: cannot find -lncurses
collect2: ld returned 1 exit status
make[1]: *** [ch_lab] Error 1
make: ***...
50
votes
6
answers
45k
views
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 ...
3
votes
1
answer
2k
views
How do I get to the options in nvlc?
I recently found out about the ncurses vlc command line interface, nvlc and tried to access the options with no success; the nvlc -option command as the help manual suggested didn't do anything
I'm ...
7
votes
1
answer
28k
views
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 ...
0
votes
1
answer
12k
views
"file too short" error while loading libtermcap.so / libncurses.so
On my Ubuntu 11.10, I am running a version of gdb for different target other than host machine and I am getting the following error:
xxxxx-none-linux-gnu-gdb: error while loading shared libraries: /...
2
votes
1
answer
803
views
Is there any ncurses archiver interface available?
I am looking for a way to create archives on the commandline with some minimal ASCII interface.
Could be for tar, zip or rar files, but should provide miniml ncurses (or other) "fake" graphical ...
13
votes
1
answer
29k
views
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. ...