1,912 questions
-1
votes
0
answers
24
views
"Undefined symbols for architecture x86_64" error when using ncurses getch() method in C++ [duplicate]
I am trying to write a program using the ncurses library, specifically using the getch() method. However the instant I use it I get a symbol(s) not found for architecture x86_64 error
This is a dummy ...
-3
votes
0
answers
16
views
error trying to install a script from an library app namely Helium which backs up your android app data to computer
https://github.com/yutclubza/YutClubZa/blob/master/Helium-Desktop-Installer-and-Android-App.md
here is the error when i try to run the SH script command in terminal
Code: Select all
yuks@puks:~/...
0
votes
0
answers
12
views
Failed to use `top` after trying to install htop
My machine:
cat /etc/os-release
gives
...
ID_LIKE="fedora"
VERSION_ID="7.2"
The error currently:
$top
'xterm-256color': unknown terminal type.
What I tried:
modify term, TERM, ...
1
vote
0
answers
46
views
Intermittent cursor visibility in NCURSES
I'm teaching myself C (c17) and playing with ncurses.
I have written a function that clears the screen and draws a random number of colored period characters in random X, Y locations. (I've removed ...
0
votes
0
answers
34
views
Undefined reference to 'tputs' when compiling gdb 15 on redhat
I am trying to build gdb15 on redhat, and I get an error:
/usr/bin/ld: ../readline/readline/libreadline.a(display.o): in function `_rl_move_cursor_relative':
/home/myusr/gdb/gdb-15.2/readline/readline/...
0
votes
0
answers
36
views
Can't make menuconfig because terminal doesn't see ncurses
I am configuring android kernel as a root user and have installed ncurses libraries with
apt install libncursesw5-dev, but if I try to make menuconfig it doesn't see this
*** Unable to find the ...
0
votes
1
answer
85
views
weird ncurses behaviour compared to pdcurses
I am working on a text editor project that uses pdcurses for tui
here is the code : https://github.com/abdelrahman1215/simple-txt.git
but since it uses pdcurses it was only availible on windows , so i ...
0
votes
0
answers
29
views
ncursesw6 compatiblity issues across distros
I didn't have much problem with ncursesw5 with my 32bit console app, but using ncursesw6 causes issues. When I build the application on a Debian based OS, it requires version symbols for ncursesw6.
...
0
votes
0
answers
31
views
Fedora 41/RedHat 9.4 crash in check_match
Trying to run a console 32bit application (compiled under Devuan Chimaera 32bit) that uses ncurses but it crashes in Fedora 41/RedHat 9.4.
./myapp: /lib/libtinfo.so.6: no version information available ...
-2
votes
1
answer
42
views
how do I get LINES and COLS updated if I user newterm() instead of initscr()?
migrating my existing code from using initscr() (which created the stdscr) ..
.. to using newterm() for multi monitor use.
I never used the stdscr but created other WINDOW's over it.
Trouble is just ...
0
votes
2
answers
67
views
Form validation using Ncurses (FORM)
Cannot implement character input validation. I have sketched out the code of a simple program for input validation. Various characters are displayed in the field.
#include <form.h>
int main() {
...
1
vote
1
answer
115
views
Adding wide character support breaks ncurses menu
I'm currently trying to create an ada program (this will be relevante later on) with a basic TUI.
To do so, I'm using ncurses, and more specifically, I'm interfacing with C as the ada bindings, ...
0
votes
1
answer
88
views
How to install ncurses package for ARM64 machine on x86 machine during cross compilation?
Error: cannot find -lncurses
How to fix this error?
I have executed these set of commands.
sudo dpkg --add-architecture arm64
sudo apt update
sudo apt install libncurses5:arm64 libncursesw5:arm64
sudo ...
0
votes
1
answer
47
views
Completely disabling mouse in ncurses
I am wondering how to completely disable mouse functionality in ncurses. I do not want to use the gpm lib.
Is the switch HAVE_LIBGPM in ncurses_def.h the way to go?
Thank you
Vaclav
0
votes
1
answer
103
views
whis is code segfaulting only outside of gdb [closed]
I have some code performing relatively simple operations
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <curses.h>
char map[3600] = {
0,0,0,0,0,0,0,0,0,0,...
2
votes
2
answers
93
views
Is there any way to detect horizontal scrolling for a mouse/touchpad in ncurses?
I'm printing a list of files to a pad using the ncurses library in C. I've already managed to code vertical scrolling for both up and down directions by detecting mouse event. Is there some way to ...
0
votes
1
answer
71
views
how to detect multiple keypresses in ncurses
I'm trying to make a crossplatform way to detect when multiple keys are held down in ncurses. I used https://gamedev.stackexchange.com/questions/144558/key-released-multiple-keys-how-to-go-around-...
0
votes
0
answers
40
views
How do I resolve ncurses build error in source file generated by MKlib_gen.sh
I am in the process of upgrading to bluez-5.65.tar.gz as part of a linux development build for a target arm-none-linux-gnueabi processor. This is simplified by dropping readline with --disable-client ...
0
votes
1
answer
138
views
C: Reading terminal key combinations (Ctrl+shift+)
I'm trying to build a simple terminal program with ncurses, but I'm having a hardtime trying to read key combinations like (Ctrl+shift+) or (Ctrl+)
I tried other libraries like libtickit which can ...
1
vote
0
answers
42
views
Tracking which terminal to call endwin on in ncurses
According to the man page for curs_initscr:
If newterm is called more than once for the same terminal, the first terminal referred to must be the last one for which endwin is called.
I have taken ...
0
votes
1
answer
33
views
Python Curses getkey giving different results based on input window
I'm writing a curses UI program in Python. I am using the curses wrapper and getting a screen object as a parameter to a function I've set up.
I divide the screen up into some smaller windows using ...
2
votes
2
answers
86
views
detection of mouse hovering using pdcurses
I am making an implemintation of conway's game of life using c and wanted to make the game highlight the cell the mouse in hovering over but i can't seem to be able to catch mouse movements even ...
0
votes
0
answers
28
views
How to Implement Continuous State Switching with Spacebar in ncurses?
So i made this project called the Hassan Doodles which is just like my own version of Google Doodles but it didn't turn out how i wanted it as it failed to run the function
Here is the code
#include &...
0
votes
0
answers
18
views
Ending Textbox when the user type ESC in ncurses with Python
General overview
In a curses wrapper, I have a main stdscr. If I press : then I enter in a specific mode where I can type text inside a curses.textpad.Textbox.
In my following MWE it work fine until ...
0
votes
0
answers
60
views
Chinese chars can not be displayed properly with ncursesw on MinGW(ucrt64) env
Recently I want to build a cross-platform tui program with C, using libncursesw. I tried to test multiple solutions as listed: (phenomenon talked below is the displaying result of string containing ...
-1
votes
2
answers
92
views
ncurses C home and end keys
I'm doing a simple menu with ncurses. It works for cygwin, but not in linux - home or end keys end the program immediately. I think handling of excape (27) has something to do with it because if I don'...
0
votes
1
answer
64
views
ncurses cannot display wide characters with colour
attempting to print a unicode character. It does not work.
Here is my code:
#include <locale.h>
#include <ncurses.h>
int main() {
setlocale(LC_ALL, "");
initscr()...
0
votes
1
answer
57
views
Ncurses c++ printing arrow codes in terminal instead of reading them
I'm in kali linux trying to do a simple cpp program using ncurses but whenever I try to read an arrow key press, the escape code appears on screen. I cannot figure out what might be happening.
#...
1
vote
0
answers
66
views
Broken vertical cursor movement in custom text editor
I am trying to implement vertical cursor movement (up and down arrow keys) in my custom nano-like text editor, but I could not get it working properly and keep introducing new bugs. My text editor ...
2
votes
3
answers
1k
views
Busybox build fails with ncurses header not found in archlinux (spoiler: i already have ncurses package)
I am trying to build busybox from source, installed all the necessary dependencies, but build fails every time with ncurses header not found err.
OS: Arch Linux x86_64 (On docker: archlinux image)
...
0
votes
0
answers
40
views
ncurses bug using init_color and curs_set
Trying to manipulate colors using ncurses, I bumped into a weird bug.
I want to set my own colors by changing color definitions using init_color. I also wanted to make the cursor invisible. That's ...
0
votes
0
answers
69
views
Inconsistency with mvwprintw in ncurses
I have written a Snake clone in C++ using the ncurses library. I have encountered a bug where at random the apple will not be printed to the screen. Here is the code:
void Screen::print_apple(const ...
1
vote
0
answers
39
views
I have a problem with terminal applications for Android [duplicate]
I wrote a code in C++ and with ncurses in an IDE for Android to test it on the terminal. The problem is when I use a different terminal.
I used c4droid to compile the code with the option to export ...
0
votes
0
answers
30
views
Change Linux build from shared ncurses5w to static causes a symbol has different size in shared object message?
Because the older ncurses5w is becoming harder to find, I changed the build to use /usr/lib/i386-linux-gnu/libncursesw.a and added tinfo as a shared library to link with.
However if I move the binary ...
-1
votes
2
answers
89
views
Link problems in Rust undefined reference to `initscr'
I am working on a pseudo OS using Rust and c++, I am trying to detect the keys pressed using c++ with ncurses (I am aware that there is a similar crate for Rust) and in the build.rs I have the ...
0
votes
2
answers
193
views
Ncurses - How to handle terminal resizes for an image that is being updated in an infinite loop
I have a program utilizing ncurses to draw a window with a clock timer. It is constantly being refreshed in an infinite loop. It works as intended, however when I resize the terminal window, the ...
1
vote
3
answers
114
views
How to move the cursor above the first line without overighting it
Here is my code
print("1")
print("2")
My desired output
2
1
I tried using ansi characters but the second line is overighting the first line
print("1")
print("\033[...
0
votes
2
answers
50
views
Get unicode character on the screen ncurses
I'm facing a problem with getting a U+2588 █ character from the screen by using the winch().
Let's assume I have a window called win and it looks like this:
###████###
I want to redraw all # ...
-1
votes
1
answer
110
views
NCURSESW - Unable to use addwstr function to print out unicode characters outside of standard ASCII
I am trying to make a simple game using the ncursesw library which I am basically a complete noob at. I got the library working and I am now able to compile programs successfully with it. Now I am ...
1
vote
0
answers
24
views
ncurses - form field validation - can't modify "TYPE-INTEGER" value entered and outside range specified with set_field_type()
I'm having trouble with field modification after entering a number outside the range specified with set_field_type() : the cursor stays in the field but I'm unable to enter any valid number after ...
-1
votes
2
answers
368
views
Why is gnome-terminal slow when drawing characters with ncurses?
I've written a small program to compare ncurses performance between various terminal emulators and virtual console. I've found that gnome-terminal performs well in some situations, and poorly in ...
0
votes
0
answers
90
views
how to install ncurses library in Android
I tried to run a program but it was using ncurses library and that library was not installed in my system
I tried to run a program but it was using ncurses library and I was unable to run it I ...
1
vote
0
answers
139
views
Preventing cursor flickering in ncurses applications
I recently wrote an application in ncurses. In most of it, the cursor is disabled, but one part of it includes an editor (using forms), and the cursor is enabled for this (with visibility 2).
I have ...
2
votes
1
answer
209
views
Check for terminal resizing using ncurses under windows
I am using ncurses for a terminal application which should also be usable on windows but every time the user resizes the terminal everything is mashed. So I need a way to detect resizing and redraw.
...
1
vote
0
answers
967
views
Libncurses5 installation for Ubuntu 23.1
A particular android build requires a dependency on libncurses. This was the error.
prebuilts/clang/host/linux-x86/clang-3289846/bin/clang.real: error while loading shared libraries: libncurses....
0
votes
1
answer
78
views
Displaying color in NCurses window
In the code below, why don't I see color text/background?
#include <ncurses.h>
int main()
{
initscr();
int lines = 20;
int cols = 30;
...
1
vote
1
answer
60
views
ncurses timeout() is terminating my program
I'm receiving input in a timed loop, and getch() blocks (waits for key) the program even though the loop has ended. When utilizing timeout(), or other functions, it doesn't block, but terminates the ...
-1
votes
1
answer
123
views
'\n' Prints extra space in ncurses C++
I am trying to write a basic app in C++ using ncurses library. All I wanted was to print out characters that user presses manually. Here's the code:
#include <iostream>
#include <curses.h>
...
2
votes
2
answers
81
views
windows not showing when the terminal is made smaller (ncurses, c)
I'm trying to make a program that has 2 windows side by side that scale to fit the terminal. However the windows only show when the terminal is made larger, not smaller.
I was wondering if it was a ...
0
votes
0
answers
26
views
How to use the pattern buffer of an ncurses menu?
The https://tldp.org/HOWTO/NCURSES-Programming-HOWTO/menus.html website says that each menu has an associated pattern buffer which can be used to find the nearest match to characters entered.
But I ...