03-28-2006
you could have tried atleast once,
try this very small example !!!
search the forum
10 More Discussions You Might Find Interesting
1. Programming
Hi again. I'm using the curses functions simply to output data to
the screen in certain areas. Very simple, just using the full
screen, no windows.
The problem is that I'm calling mvprintw from within several child
processes in the same session, and the output is going
bananas. ie, no... (1 Reply)
Discussion started by: TelePlayer
1 Replies
2. Programming
I am writing a program which uses curses.h. I do not have any problem when compilng it in Digital UNIX at my school.
But when I compiling it in Mandrake Linux 6.0 at my home, I got a error message said that curses.h not found.
Does curses.h include in Linux?
How to slove my problem? (2 Replies)
Discussion started by: MacMonster
2 Replies
3. UNIX for Dummies Questions & Answers
hi i'd like to know how to draw a rectangle using the curses.h library, you know with all the WINDOW *newwin stuff and all
thanx!:) (1 Reply)
Discussion started by: chomano
1 Replies
4. Programming
My vendor application has created serveral message queues in the AIX platform. I would like view the real-time message in the queues and output the contents on the screen by using curses library in UNIX.
I know how to do it with curses, but I have no idea to view the contents of the queue. Is... (1 Reply)
Discussion started by: kkyim
1 Replies
5. Programming
i want to write a C programm.i want to read a 2-dimension array from a file and using the library <curses.h> i want to delineate to the monitor the array.the monitor must every 40ms being refresing.i want to use the setitimer() function to achive this.the array will be similar like above (2 Replies)
Discussion started by: nektarios4u
2 Replies
6. Shell Programming and Scripting
I was wondering if there is anyway to use the curses library with ksh88. I saw Shell Curses function library which says I can use /usr/local/functions/shellcurses on ksh93 but I am on ksh88. I am on a HP-UX box. (0 Replies)
Discussion started by: IMTheNachoMan
0 Replies
7. Programming
Hi.
I am beginning with Unix C Curses Library and i would like to know if it's possible to resize my current window.
In other words, i am working with a Putty Client over my Windows system and with a telnet/ssh connection to linux. I want to build a small linux application using C Curses... (10 Replies)
Discussion started by: pogdorica
10 Replies
8. Programming
I'm working with an extremely outdated and old system at work. We do not have ncurses, but we do have curses. I need to make a user interface for users connecting with xterm. One issue I've encountered is if the user resizes the window, I'd like to provide functionality to redraw the screen with... (4 Replies)
Discussion started by: nwboy74
4 Replies
9. Programming
I recently moved from linux to aix, version 6.1, perl 5.8.8. We were running a perl script using curses::ui for a user interface which was working fine on linux, but the issue on aix is no mouse support. I have tried with the -mouse-support => 1, to no avail. I'm not sure about aix's xterm... (0 Replies)
Discussion started by: islanderman
0 Replies
10. UNIX for Dummies Questions & Answers
I am using curses library for graphics on linux.
I have created a static GUI which contains two boxes which cover the whole screen, but when i make the screen small it shows only the half GUI, it does'nt adjust according to the the new window size.
I want the GUI to adjust according to the... (1 Reply)
Discussion started by: apapap
1 Replies
LEARN ABOUT MOJAVE
wget_wch
curs_get_wch(3X) curs_get_wch(3X)
NAME
get_wch, wget_wch, mvget_wch, mvwget_wch, unget_wch - get (or push back) a wide character from curses terminal keyboard
SYNOPSIS
#include <curses.h>
int get_wch(wint_t *wch);
int wget_wch(WINDOW *win, wint_t *wch);
int mvget_wch(int y, int x, wint_t *wch);
int mvwget_wch(WINDOW *win, int y, int x, wint_t *wch);
int unget_wch(const wchar_t wch);
DESCRIPTION
The get_wch, wget_wch, mvget_wch, and mvwget_wch functions read a character from the terminal associated with the current or specified win-
dow. In no-delay mode, if no input is waiting, the value ERR is returned. In delay mode, the program waits until the system passes text
through to the program. Depending on the setting of cbreak, this is after one character (cbreak mode), or after the first newline
(nocbreak mode). In half-delay mode, the program waits until the user types a character or the specified timeout interval has elapsed.
Unless noecho has been set, these routines echo the character into the designated window.
If the window is not a pad and has been moved or modified since the last call to wrefresh, wrefresh will be called before another character
is read.
If keypad is enabled, these functions respond to the pressing of a function key by setting the object pointed to by wch to the correspond-
ing KEY_ value defined in <curses.h> and returning KEY_CODE_YES. If a character (such as escape) that could be the beginning of a function
key is received, curses sets a timer. If the remainder of the sequence does arrive within the designated time, curses passes through the
character; otherwise, curses returns the function key value. For this reason, many terminals experience a delay between the time a user
presses the escape key and the time the escape is returned to the program.
The unget_wch function pushes the wide character wch back onto the head of the input queue, so the wide character is returned by the next
call to get_wch. The pushback of one character is guaranteed. If the program calls unget_wch too many times without an intervening call
to get_wch, the operation may fail.
NOTES
The header file <curses.h> automatically includes the header file <stdio.h>.
Applications should not define the escape key by itself as a single-character function.
When using get_wch, wget_wch, mvget_wch, or mvwget_wch, applications should not use nocbreak mode and echo mode at the same time. Depend-
ing on the state of the tty driver when each character is typed, the program may produce undesirable results.
All functions except wget_wch and unget_wch may be macros.
RETURN VALUES
When get_wch, wget_wch, mvget_wch, and mvwget_wch functions successfully report the pressing of a function key, they return KEY_CODE_YES.
When they successfully report a wide character, they return OK. Otherwise, they return ERR.
Upon successful completion, unget_wch returns OK. Otherwise, the function returns ERR.
SEE ALSO
curses(3X), curs_getch(3X), curs_ins_wch(3X), curs_inopts(3X), curs_move(3X), curs_refresh(3X)
curs_get_wch(3X)