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

Python Console UI Suggestions

I'm currently rewriting a perl console application that was using curses, and planning to implement it in Python. So far I've narrowed my library options to straight curses, urwid, and dialog. The application is basically an installer for an…
dkw22
  • 111
  • 3
11
votes
1 answer

Keep stdin line at top or bottom of terminal screen

So I am writing a project where I run a program that constantly receives/sends messages to other computers running the same program. The receiver/sender of data is running on a thread and prints to stdout. I get stuff like this: [INFO] User 'blah'…
Mo Beigi
  • 1,614
  • 4
  • 29
  • 50
11
votes
3 answers

Using a debugger and curses at the same time?

I'm calling python -m pdb myapp.py, when an exception fires, and I'd normally be thrown back to the pdb interpreter to investigate the problem. However this exception is being thrown after I've called through curses.wrapper() and entered curses…
Matt Joiner
  • 112,946
  • 110
  • 377
  • 526
11
votes
2 answers

Why is curses on linux giving me following error?

Trying to get getch() working to capture key press. #include ... ... WINDOW *w; char f; w = initscr(); timeout(3000); f = getch(); endwin(); is giving me following error:- undefined reference to…
Alex Xander
  • 3,903
  • 14
  • 36
  • 43
11
votes
2 answers

Print to standard console in curses

I'm building a python curses application. I have two ways of printing to the curses window: print x, and windows.addstr(x) (and the other similar window.* options). However, for debugging purposes, I'd like to be able to print to the standard…
ACarter
  • 5,688
  • 9
  • 39
  • 56
11
votes
2 answers

python celery - ImportError: No module named _curses - while attempting to run manage.py celeryev

Background Windows 7 x 64 Python 2.7 Django 1.4 Celery with Redis bundle While trying to run manage.py celeryev, I get the following error in the terminal import curses File 'c:\Python2\lib\curses\__init__.py', line 15, in from _curses…
snakesNbronies
  • 3,619
  • 9
  • 44
  • 73
10
votes
3 answers

Are there any toolkit libraries for curses with Python bindings?

I'm writing a text-based hex viewer for fun and usefulness(I intend to add syntax highlighting for many different filetypes), and am wondering if there are any curses toolkits I could use. I will probably write something myself anyway as to…
Llamageddon
  • 3,306
  • 4
  • 25
  • 44
10
votes
1 answer

Difference between the headers ncurses.h and curses.h

What is the difference between the headers and as variations for the curses library? Why should I prefer #include Instead of #include ? I have searched for the difference in my Linux distribution. In…
10
votes
3 answers

Make can't find curses.h

I have this program called samtools (version 1.3) that is used for manipulating the files that you get from DNA sequencing experiments. The downloaded program is contained in a folder. To set the program up I enter that folder in the terminal (on an…
Gaussia
  • 113
  • 1
  • 2
  • 8
10
votes
1 answer

python curses tty screen blink

I'm writing a python curses game (https://github.com/pankshok/xoinvader). I found a problem: in terminal emulator it works fine, but in tty screen blinks. I tried to use curses.flash(), but it got even worse. for example, screen field: self.screen =…
Pavel Kulyov
  • 328
  • 3
  • 9
10
votes
4 answers

are there any tree libraries/widgets for (n)curses

I wondered if there were any tree libraries available for (n)curses. I'm trying to write a component that shows a tree of folders & was curious if there was a prebuilt curses component that could do this. I've checked 'core' curses as well as…
phatmanace
  • 4,671
  • 3
  • 24
  • 29
10
votes
2 answers

Pycharm : how-to launch for a standard terminal (to solve an issue with curses)

I'm facing a weird problem. Using Pycharm (please do not troll about this fact), I'm trying to launch a short app that uses ncurses to render some things on my term. While I can launch the project in a simple term without any problem, launching it…
Koreth
  • 681
  • 5
  • 15
10
votes
1 answer

Python, "filtered" line editing, read stdin by char with no echo

I need a function that reads input into a buffer as raw_input() would, but instead of echoing input and blocking until returning a full line, it should supress echo and invoke a callback every time the buffer changes. I say "buffer changes" instead…
salezica
  • 74,081
  • 25
  • 105
  • 166
10
votes
2 answers

Python console application - output above input line

I am trying to write a console application in Python3. The problem is I would like all output messages EG: print("Status message") to be above the input line at the bottom. Status message 1 Status message 2 Status message 3 Console:> I want to type…
Sean Wilkinson
  • 111
  • 2
  • 7
10
votes
3 answers

Python TUI libs

I'm writing a small sudoku game/solver in Linux using python with TUI (not GUI, that's just lame) just for fun. My question is, which lib is better (by that I mean easier to handle, better support, more straight-forward and understandable), the…
lllluuukke
  • 1,304
  • 2
  • 13
  • 17
1 2
3
66 67