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

multiple Textboxes in curses

I need to create two Textboxes in curses and switch between them when I press Enter this code put the cursor on the top-left corner of the screen when I press enter for the second Textbox and I can't prevent it. import curses import curses.textpad…
Hassen
  • 860
  • 2
  • 11
  • 23
0
votes
1 answer

how do I get the library curses.h?

I'm trying to compile a project someone wrote in visual C on my Netbeans+cygwin, and there are a lot of libraries I don't have. One of the problems is conio.h, and it seems like I can use curses.h. How do I get curses library?
sam
  • 57
  • 1
  • 10
0
votes
1 answer

How should I dynamically position strings?

Here is a program that shows a simple animation to show the user that the program is waiting for input, or is doing something, and it hasn't crashed: require "curses" include Curses chars = [" ","* ","** ","***","***","**…
Starkers
  • 10,273
  • 21
  • 95
  • 158
0
votes
1 answer

Python - Using Curses to split async in single terminal

I have this async script below, what I'd like to do is have it split it's output but in two different sections of the terminal (top and bottom). I've heard curses is a great way to go about it, but can't find an example that seems to come close to…
Dustin
  • 6,207
  • 19
  • 61
  • 93
0
votes
1 answer

Python issue with curses.intscr()

I am new in Python and I am using curses for my script. But when I am try to run the script in server(let say 1) I am getting below error. _curses.error: addstr() returned ERR And the same script when I am try to run in another server(let say 2) it…
user2510115
  • 674
  • 2
  • 8
  • 17
0
votes
1 answer

Problem with import curses.ascii

I am trying from curses.ascii import * to django project, but I get: No module named _curses, I am using Python 2.5, any suggestion? Anyway I only need isalpha() function to use....
IProblemFactory
  • 9,551
  • 8
  • 50
  • 66
0
votes
1 answer

undefined reference to 'PDC_chadd'

I'm having a bit of a problem using the curses.h header file, and yes, I'm still a tad new at coding in C++. The problem is that when I try to compile, it gives the error: C:\Users\james\AppData\Local\Temp\cc0VxbfM.o:main.cpp:(.text+0x82):…
0
votes
1 answer

How to receive screen resize message in curses?

I am using curses in Ruby to display data in two different windows. Since the code might run in a X11 terminal, I would like the curses window resize when the terminal resizes. Is there any way of doing that?
xis
  • 24,330
  • 9
  • 43
  • 59
0
votes
4 answers

Do I need concurrent loops?

I'm making a text based game using the Curses library. There is a part of the game where the player enters an "arena". When inside of the arena the program needs to run a loop(1) that allows the player to move, and it also needs to run a loop(2)…
Redeyery
  • 25
  • 4
0
votes
0 answers

Error with Curses on Raspberry Pi - Python

I've recently bought a Raspberry Pi and I'm completely new to Linux and Python. I'm trying to build a program that will enable to control the frequency of a flashing light with the arrow keys. So I found a related question with a solution here. I've…
user26830
  • 1,059
  • 4
  • 16
  • 25
0
votes
2 answers

Getting CTRL characters with NCurses

How are control keys obtained from the NCurses library? I need to know if a result from getch () is a character pressed with ctrl, and what character was pressed with it. I googled "ctrl keys ncurses" and "control keys ncurses" without much results.…
tay10r
  • 4,234
  • 2
  • 24
  • 44
0
votes
2 answers

Why don't ncurses widgets work properly when created in a separate function?

I'm trying to create a series of nested menus using pure ncurses in C++. If I create a menu and post it in main(), it works fine. But if I take the same code and put it in a function that returns a MENU*, it doesn't work at all. Am I missing…
sagargp
  • 1,030
  • 11
  • 24
0
votes
1 answer

problems with the curses.newwin() command

when using the curses.newwin() command e.g. curses.newwin(10, 10, 0, 0) if i try to edit the integers to create a larger window the program terminates when I try to run it.
Dannyboy8899
  • 101
  • 2
  • 7
0
votes
1 answer

Python Npyscreen Setting Colors To Widgets

So I'm trying to build a UI in npyscreen, however the documentation I'm reading is not very thorough: http://npyscreen.googlecode.com/hg-history/6f7c0a23d255707deddc80501e81f97197c9628b/docs/UserDocumentation.html Could somebody help me set the…
robins35
  • 653
  • 12
  • 37
0
votes
1 answer

How to continually get char from keyboard without a pause?

I'm using ncurses to make a game. I tried getch(). When I press a key on the keyboard and don't release it, I can get a sequence of the same char. Here comes the question. There is a small pause between the first char and the second char. I'd like…
leoly
  • 8,468
  • 6
  • 32
  • 33