ncurses

curses API

Where can I find a complete reference of the ncurses C API? ...

ncurses in windows

please list a ncurses libraries in C/C++ for windows that emulate ncurses in native resizable win32 windows NOT in console mode. ...

Getting 256 colors out of ruby-ncurses

I've got 256 colors working great in my terminal (test scripts here), but it stops working when I use ncurses (via Ruby-ncurses). Printing the escape sequences given on that page works fine, but when I initialize ncurses 'puts' stops working and I can't output the colors with any of the various ncurses color changing/string output functi...

using curses with raw_input in python

Hey, In my python linux console application I use curses to handle displaying of data. At the same time I'd like to have an input line to enter commands, pretty much in good ol' irssi-style. With default curses getch() I'd have to do a lot of coding just to get the basic funcionality of raw_input function - arrow keys to move cursor / b...

python curses.ascii depending on locale?

The curses.ascii module has some nice functions defined, that allow for example to recognize which characters are printable (curses.ascii.isprint(ch)). But, diffrent character codes can be printable depending on which locale setting is being used. For example, there are certain polish characters: >>> ord('a') 97 >>> ord('ą') 177 >>> ...

How do I link PDCurses to a C++ application on Windows?

I'm building a C++ application and need to use PDCurses on Windows. I'm compiling with VC++ from MS VS 2005 and I'm getting a link error. error LNK2019: unresolved external symbol __imp__GetKeyState@4 referenced in function __get_key_count There are 11 errors all with the same error code and different symbols. The missing symbols...

Console interface tutorials and tips (pdcurses)

I'm looking for tutorials on using PDCurses library. Unfortunately there is text only documentation, which is more like function reference. Are pdcurses similar enough to ncurses to use ncurses tutorials??? Any tips for making console UI's ??? PS. PDCurses - mingw32. ...

256 colors, foreground and background

This is a tale of two scripts and is related to a previous question. The two scripts are at http://gist.github.com/50692. The ansi.rb script displays all 256 colors on all 256 background colors. The ncurses.rb script displays all 256 foreground colors but the background displays the basic 16 and then seems to cycle through various attri...

C++ wrappers for ncurses?

Can anyone recommend a C++ wrapper for ncurses? ...

NCurses initialization without clearing the screen.

I am writing a program that's similar to a shell. Once started up, there's a prompt and you enter in some app-specific commands. So far this works just fine. However, I want to add support for command history like in Bash, so the user could hit the up or down arrow and see previously entered commands. I have included the ncurses libr...

Designing Textual user interface using ncurses

Hi All, I m planning to write a utility using ncurses..that is menus and panels on unix. Is there any way of designing my TUI and see how it looks and feels..before i do the actual coding.. any utilities for this..or some articles..links..etc.. Thanks. ...

Using GNU Readline; how can I add ncurses in the same program?

The title is a bit more specific than my actual goal: I have a command-line program which uses GNU Readline, primarily for command history (i.e. retrieving previous commands using up-arrow) and some other niceties. Right now the program's output appears interspersed with the user's input, which sometimes is OK but the output is asynchr...

Undefined reference when using ncurses on linux

I'm trying to start developing a program using ncurses on Linux. I can't even get the Hello World example to compile. Here's the code: #include <curses.h> int main() { initscr(); printw("Hello, world."); refresh(); getch(); endwin(); return 0; } When I attempt to compile, I get:...

ncurses menus - won't display my user inputted string

When I create a literal string and add it to the menu, everything works fine. But if I input a string from the user, then the menu is "blank". I don't know if this is a curses/menu problem, or a C problem, as I am a beginner at both. #include <curses.h> #include <menu.h> #include <malloc.h> int main() { MENU *my_menu; ITEM **my...

Non-blocking getch(), ncurses

I'm having some problems getting ncurses' getch() to block. Default operation seems to be non-blocking (or have I missed some initialization)? I would like it to work like getch() in Windows. I have tried various versions of timeout(3000000); nocbreak(); cbreak(); noraw(); etc... (not all at the same time). I would prefer to not (expl...

Ncurses scrollable text reader

I need to implement a simple text reader, sort of like less for unix, using ncurses. I'm having problems understanding how to do so. I currently have a window, and everytime I press the down key (for example) I refresh all the lines at the appropriate starting point, giving it a scrolling-like feel. The problem comes with text-wrapping,...

Curses getting arrow keys

In trying to get input from the arrow keys via curses (ncurses) it won't catch as KEY_UP etc. I used the keypad function with a true argument but getch still returns an escaped sequence. How do I sift through the values returned by getch() and grab the arrow keys specifically? ...

ncurses to external shell and back messing with keys

I have this ncurses application that is doing the standard recipe for temporarily dropping out of ncurses, running an external editor/shell/whatever, and then dropping back to ncurses when it's done. This ~almost works, except that the first few keypresses that ncurses gets afterwards are obviously bogus; ncurses thinks ^[ and A are see...

Drawing coloured boxes with ncurses

Hi I want to draw a filled box in console and set colour for every single pixel. Is it possible to achive this with ncurses? If not - is there any other library that will do the trick? ...

Configuring already installed PHP to work with already installed ncurses (MAMP).

I have installed MAMP and the PHP it came with wasn't compiled with ncurses. I've tried to use port to install ncurses and it seems that it already exists on my system so now I was wondering if there was a way to get PHP to use it without having to recompile PHP --with-ncurses. In other words: Can PHP be configured to use ncurses withou...