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
2 answers

I can't import MacPorts' /opt/local/include/ncurses.h into my Swift project. It conflicts with macos SDK /usr/include/ curses.h. Any hint?

EDIT: Getting negatives for such a detailed and HONEST question? Sometimes I don't really get Stack Overflow. Really. Hi, I'm trying to create a PoC using Swift 5 (Xcode 10.2.1) and a modern rendition of ncurses (in this case, MacPorts' one, some…
Isaac
  • 1,794
  • 4
  • 21
  • 41
0
votes
0 answers

Unable to compile program with header using MinGW

I am using this program https://github.com/aviikc/CIS2500_fileeditor. There exists a ncurses and ncursesw folder in c:MinGW/include . but running gcc -Wall -pedantic -std=c99 ./src/fileeditor.c -Iinclude -lncurses -o ./bin/output its throws an…
Aviik
  • 11
  • 1
  • 6
0
votes
1 answer

What pkg creates symlink from /lib/libncurses.so.5 to /lib/aarch64-linux-gnu/libncurses.so.5?

what package would setup a symlink from "/lib/libncurses.so.5" to the actual library, /lib/aarch64-linux-gnu/libncurses.so.5? This is a programming question, because I'm trying to compile/link a program that wants to use -lncurses, and I strongly…
Stan Sieler
  • 729
  • 7
  • 16
0
votes
0 answers

C/C++ Ncurses shift start of tab column

I have a ncurses-based text editor in c++ that uses tabs. Is there a way to make the tab columns shift by a certain amount to account for a side-ruler? I can start my program with different sized tabs by setting TABSIZE, eg TABSIZE=4. This is nice,…
Dosisod
  • 307
  • 2
  • 15
0
votes
1 answer

Position in ncurses a pad below a window in c++

I create 3 windows on top of the standard screen, with screen-width columns and one row height with: WINDOW* pWindow = newwin(0, COLS - 1, windowNr, 0); // windowNr 0 - 2 Which renders normally as consequitive windows: ----------------------------0…
ManuelTS
  • 316
  • 4
  • 14
0
votes
2 answers

Why printw does display in this case?

Why in this case, printw displays "Blah" ? I use nocbreak. So printw is not supposed to produce output normally, because the output is line-buffered. int main(int ac, char **av) { initscr(); nocbreak(); printw("Blah"); refresh(); …
Progear
  • 157
  • 8
0
votes
0 answers

What did I do wrong to find a node with same string type data as given one?

I programmes a Tetris game, and as a part of it, I made ranking system. The ranking is saved in a text file, and it's read and saved in a linked list at the beginning of the program. Each node has name(string), score(integer), linke for next…
MyName
  • 13
  • 3
0
votes
2 answers

if statement in do block gives error message

I'm trying to make a very simple snake-like game where, if you try to go to a x,y coordinate you have already visited, you lose the game. This is code that's working so far (you can move player 1 with arrowkeys and player 2 with wasd): import…
abc556
  • 37
  • 5
0
votes
3 answers

How to show terminal in linux application?

I was wondering if you could have it so when you go and click on a program in linux it always automatically brings up the command line for the information being displayed or if I decided to use ncurses for an interface. If so is this a system…
Yoshi65
  • 23
  • 2
0
votes
1 answer

Get back the value list from an ncurses FIELD

I want to get back the value list from an ncurses FIELD with type TYPE_ENUM. The value list has been set with this code: const char* val_lst[] = { "type 1", "type 2", "type 3", NULL }; set_field_type(fields[OPT_VAL_FLD], TYPE_ENUM, val_lst, 0,…
HJP
  • 67
  • 1
  • 6
0
votes
1 answer

How to print special characters in c++ for mac using ncurses libarary

Now, I want to print special characters in c++ for mac(mojava, 10.14.4), but these characters are broken in my mac book. I installed ncurses such as brew install ncurses and brew link ncurses. It can printw English such as Hello World, but special…
박현근
  • 61
  • 9
0
votes
2 answers

How can i run multiple commands in python script

How can i run multiple commands using python script I have already written following code, but still is there any other alternative? os.system("clear") os.system("virtualenv -p python3 /opt/"+name) os.system("source /opt/"+name+"/bin/activate") …
Nagesh Mhapadi
  • 152
  • 3
  • 14
0
votes
1 answer

ACS_BLOCK and ACS_CKBOARD not working in nCurses, while rest of ACS chars are working

Some wide characters like ACS_ULCORNER and others are working fine, where as ACS_BLOCK and ACS_CKBOARD are not working as expected, instead they are shown as #. and Compiled using this command. gcc test2.c -lncurses -o test2 I highlighted both…
VAR121
  • 512
  • 2
  • 5
  • 16
0
votes
0 answers

How to add color using python3 curses.window.addch?

I tried to print colorful output using python3 curses: #!/usr/bin/env python3 import curses def main(stdscr): curses.start_color() curses.use_default_colors() # 0 is always black for i in range(0, curses.COLORS): …
JiaHao Xu
  • 2,452
  • 16
  • 31
0
votes
2 answers

What am I doing wrong here (trying to program a *.srt parser in C)?

I just found a *.srt file that mpv fails to load. So, I thought let's make my own subtitle parser that takes subtitle's path as command-line argument. Here's what I tried : /* Intended to be a program for parsing *.srt subtitles as an alternative to…
user7555262