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

Animate console graphics without Curses

I have been using the SoX play command line tool to playback audio files from the console, and have noticed that there is a nice little display of the time info and left/right levels that update in real time with the audio source . . . Screenshot…
learnvst
  • 15,455
  • 16
  • 74
  • 121
0
votes
1 answer

Python — curses, setting the color of a border

From the Python docs and howto pages it's clear how to color text: by first adding strings to a window and then using chgat() to assign a color-pair to the desired characters in that window. What isn't clear to me is how to change the color of a box…
brannerchinese
  • 1,909
  • 5
  • 24
  • 40
0
votes
0 answers

Python curses.initscr() bug? terminal doesn't show input and each new output is on same line

I just tried using curses w/ python 2.7.6 running OS 10.9.2 to just get the curses.beep() function to work. I got the beep but my terminal stopped showing me my input (I'm not talking the echo from interactive Python but actually what I was typing…
Ben Kushigian
  • 285
  • 1
  • 10
0
votes
1 answer

how can I determine if a library (lets say "cursesw") is standardly distributed with a unix/linux release

Im writing an application that should use cursesw/ncursesw in a variety of different Unix/Linux platforms. How can I know if a distribution installed from scratch contains these libs (or any other libs) by default. (without the need to install a…
Yair Karmy
  • 31
  • 5
0
votes
1 answer

How do I access curscr in Python curses?

When using curses in Python, I know how to use stdscr which is returned by curses.initscr(). How do I access curscr which holds the current screen image? Background: I have several (overlapping) windows. To make them look nice, I added shadows. For…
nullp01nter
  • 522
  • 4
  • 18
0
votes
1 answer

C++ Differentiating Key Press vs Key Release

I'm currently listening to keyboard inputs through a getch() while loop and everything is working great. However, if I'm holding left and press up, then the left movement is stopped until I press it again. The only way I can think of solving this…
0
votes
1 answer

Debuggin Python curses program

Im writing a Python curses program using vi editor. Would like to understand how to debug the module to debug it? Is there any tools that I can use?
user1050619
  • 19,822
  • 85
  • 237
  • 413
0
votes
1 answer

can mvprintw(), curses function work with usual ascii codes?

I've developed a little console C++ game, that uses ASCII graphics, using cout for the moment. But because I want to make things work better, I have to use pdcurses. The thing is curses functions like printw(), or mvprintw() don't use the regular…
user1508332
0
votes
1 answer

Curses Error When Text Reaches Right

I wrote a curses code: import curses import time message = raw_input('Enter a word or phrase: ') q, vertical, horizontal = -1, 1, 1 y, x = 0, 0 screen = curses.initscr() screen.nodelay(1) curses.noecho() dims = screen.getmaxyx() while q < 0: q =…
0
votes
1 answer

PDCURSES assignign value to integer make error

I'm using PDCURSES on Windows 7 and my program stops working at the beginning. I noticed the error is made by assigning value to integer in line: 41 . Unfortunately I have no idea why. I'm writing in C in Code blocks. I would be grateful if someone…
whiteNinja
  • 33
  • 1
  • 7
0
votes
1 answer

ncurses: Non overlapping windows still clobber each other

I'm trying to create a simple application that uses a scrollok()-enabled window for text as an example application but I'm having difficulty getting my windows to line up properly. The application's layout should be something along the lines of…
user3056541
  • 75
  • 1
  • 5
0
votes
2 answers

Vim motion keys sometimes appear on screen when using tmux

When I'm not in insert mode and I'm navigating around my file with the motion keys (hjkl etc), the keys often appear in the buffer (illustrated below). I can observe this effect pretty readily in tmux, but it doesn't seem to happen without. If I run…
benekastah
  • 5,651
  • 1
  • 35
  • 50
0
votes
1 answer

Show updating information without user interaction with curses

Task is to print to the screen some continuously changing information without user input for some period of time using curses lib. Following code illustrates idea. require 'curses' include Curses str = String.new init_screen() 5.times do |val| …
Daniil
  • 45
  • 4
0
votes
1 answer

movement not working ncurses game

I am making an ncurses game which has a spaceship fire bullets at other enemies. I've got the ship firing bullets how ever when I fire more than one bullet, only the latest bullet will move and the rest will stay still. int i=0 , j=-1; switch(key){…
0
votes
1 answer

Suggested working flow in ncurses

I am trying to find out how to correctly use ncurses. I want to create couple of menus, and each menu will lead to another menu for example. Should I make a template of a menu then add parameter to the function of the generic menu that will choose…
Mike L
  • 1,955
  • 2
  • 16
  • 18