Questions tagged [curses]

Curses is a library for unix-ish computers that you can use to have better and more interactive consoles, including colors. It is used in some console games, like the original Rogue.

Curses is a library for unix-ish computers that you can use to have better and more interactive consoles, including colors. It is used in some console games, like the original Rogue.

See also: -

1003 questions
0
votes
1 answer

how to build a customized terminal for linux

I need to build a terminal that looks like this: https://i.stack.imgur.com/yFGCK.png the rule is always the same column indicate the numbers and letters ABC are your input. is possible to do with ncurses or gtk-vte? any suggestions? so far i got…
0
votes
2 answers

How use key_name from ncurses

sorry for my bad english. I make app in c with ncurses-5.9 lib. In docs for lib ( ncurses-5.9/doc/html/man/curs_util.3x.html ) I found what function key_name defined in curses.h, but if I include curses.h, I still get error key_name was not…
Kmd
  • 337
  • 2
  • 5
  • 18
0
votes
1 answer

Show bash script output in live on perl - curses script

I'm a newb' on Perl, and try to do a simple script's launcher in Perl with Curses (Curses::UI) On Stackoverflow I found a solution to print (in Perl) in real time the output of a Bash script. But I can't do this with my Curses script, to write this…
0
votes
1 answer

curses.echo() stopped working in curses after window became pad

In an earlier version of this program echo() worked fine but stopped working after some rewrites. The only thing i can think of that could be relevant is that the main window (self.screen) is now a pad instead of stdscr. Everything else is working…
sousys
  • 51
  • 6
0
votes
1 answer

Vim, Python and curses

I wrote a small python script for vim that uses the curses library. When I try to call the function curses complains about: Traceback (most recent call last): File "", line 9, in File "/usr/lib/python2.6/curses/__init__.py", line…
Benny
  • 1
  • 2
0
votes
2 answers

Weird error with .addstr() in a derwin()-object in Python Curses

I'm trying to segment one window in curses into several sub-windows (with derwin()). The code creates two sub-windows and I can add a string; no problem with the first function. The second one is pretty much exactly the same but gives me an error…
sousys
  • 51
  • 6
0
votes
1 answer

enter sessible user input box

I am trying to create a input box as shown below. For this reason, I have wrote below code but whenever I press enter key, it should not take any word, lke whenever you press enter key on the username input box it will swtich to the password input…
demilg
  • 77
  • 6
0
votes
1 answer

Tracking KEY_ENTER in Ncurses

How does one track KEY_ENTER in ncurses? I have tried tracking \n using getch(), KEY_ENTER, and raw(), to no avail.
jhtong
  • 1,529
  • 4
  • 23
  • 34
0
votes
1 answer

Ncurses: Creating padded spaces between columns

I am creating a scrollable list using ncurses, similar to the list in aptitude (apt-get front end). How should I go about creating padded spaces between columns? I am planning to write each column using wprintw(). e.g. pizza spicy …
jhtong
  • 1,529
  • 4
  • 23
  • 34
0
votes
1 answer

Dealing with multiple strings in curses

I'm trying to make a game that resembles "Falldown," a TI-83 calculator game that I used to play in high school, using the curses library in Python. It involves a forever falling ball that you have to manoeuvre through holes and if you don't make it…
cursesNOOB
  • 11
  • 6
0
votes
1 answer

how to properly use curses/debugging a simple c program

I am trying to learn how to use curses to handle input for my upcoming assignment. i was given a c program called test-curses.c which contained the following code... #include #include #include // brief example of…
wenincode
  • 376
  • 5
  • 10
  • 20
0
votes
3 answers

Debug Python Curses app in Eclipse PyDev?

I've written the following basic python curses application using Eclipse and PyDev. #!/usr/bin/python import curses myscreen = curses.initscr() curses.noecho() curses.curs_set(0) myscreen.keypad(1) myscreen.border(0) myscreen.addstr(12, 25,…
James
  • 241
  • 3
  • 13
0
votes
1 answer

Ncurses escapes with Perl

Writing Perl code. I know I can use Term::ANSIColor and do print color('red') . 'hello world'; However, in this circumstance I'm using a curses library and I'd like to create a label where some words are in red, some in yellow, etc.. All I can…
persson
  • 129
  • 2
  • 8
0
votes
1 answer

pine/elm type command line email for MAPI?

I wondered if anyone knew of, or had written a curses/text mode email client for MAPI Rationale is that Outlook is pretty fat these days, and quite slow. I'm thinking that this might be slight a strange thing to do, as google searches for anything…
phatmanace
  • 4,671
  • 3
  • 24
  • 29
0
votes
2 answers

Using curses library to create GUI for different operating systems

It would appear that the curses library is specific to the operating system. Given this, I would like to know: Can the curses library be used in a non-standard operating system (as in not Windows, Linux, Mac OS, so on...)?; and, If the curses…
user1505399
  • 69
  • 1
  • 1
  • 7