10-04-2001
Re: Yet Another Question
Quote:
Originally posted by mbolthouse
if(movement == 8)
I'm a c programmer, not a c++ programmer, but I gotta say I
think that if statement needs some help. You're checking to see if movement is a decimal 8 and that's not what the 8 key transmits. In c
if(movement == '8')
would be correct. Give that a try.
7 More Discussions You Might Find Interesting
1. Programming
what is WDFP and WE STATION? (1 Reply)
Discussion started by: billybayou
1 Replies
2. Solaris
Im trying to edit a 113 meg file in VI and i get the error TMP FILE TOO LARGE.
Does someone know how to get around this?
Thanks! (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies
3. UNIX for Dummies Questions & Answers
Hello
if I like to move file from defined directories system to new directory that not contained any directories system structure .
But I like to create the same file system structure as source directory for example :
I have 2 directories: foo1 and foo2
foo1 have directories and foo2 have... (2 Replies)
Discussion started by: umen
2 Replies
4. UNIX for Dummies Questions & Answers
hallo, ik heb hier een vraagje. hoeveel gebruikers kunnen er op 1 unix systeem. hopelijk antwoorden golle nu want ik moet da vinde voor school en die leerkracht zaagt. :p
groetjes eu wacht wa was mijne nick ah ja vraagje
groetjes vraagje
ik kan geen engels dus antwoord liever in het... (1 Reply)
Discussion started by: vraagje
1 Replies
5. Shell Programming and Scripting
Hey my friend was asking me if i knew a way to cout how many different words in a file. I told him no not off hand, but i was thinking about it, and i started to wonder also. I imagine this is probably pretty simple im just missing something, I keep confusing my self with how you would compair and... (16 Replies)
Discussion started by: yodadbl07
16 Replies
6. Hardware
How to add 3 moniters to a pc set up? (2 Replies)
Discussion started by: clicstic
2 Replies
7. AIX
Hi,
Can anyone please explain a little about df command. I have following question:
Following example is showing % used as 4 where as total free blocks are 15.46 out of 16.00 MB blocks.
df -m /test
Filesystem MBblocks Free %Used Iused %Iused ... (5 Replies)
Discussion started by: itsabhi9
5 Replies
LEARN ABOUT ULTRIX
wgetch
getch(3cur) getch(3cur)
Name
getch, mvgetch, mvwgetch, wgetch - read character
Syntax
#include <cursesX.h>
int getch()
int wgetch(win)
WINDOW *win;
int mvgetch(y, x)
int y, x;
int mvwgetch(win, y, x)
WINDOW *win;
int y, x;
Description
The routine reads a character from the terminal associated with the default window.
The routine reads a character from the terminal associated with the specified window.
The routine reads a character from the terminal associated with the default window at the specified position.
The routine reads a character from the terminal associated with the specified window at the specified position.
The following information applies to all the routines. In mode, if there is no input waiting, the integer is returned. In mode, the pro-
gram waits until the system passes text through to the program. Usually the program will restart after one character or after the first
newline, but this depends on how is set. The character will be echoed on the designated window unless has been set.
If is and a function key is pressed, the token for that function key is returned instead of the raw characters. Possible function keys are
defined in the header file with integers beginning with 0401. The function key names begin with KEY_. Function keys and their respective
integer values are described in the Guide to X/Open Curses Screen-Handling (R)
If a character is received that could be the beginning of a function key (such as escape), sets a timer. If the remainder of the sequence
does not come within the designated time, the character will be passed through, otherwise the function key value is returned. Conse-
quently, there may be a delay after a user presses the escape key before the escape is returned to the program.
Using the escape key for a single character function is discouraged.
The routines and are macros.
Return Values
Upon successful completion, the and functions return the character read.
If in delay mode and no data is available, ERR is returned.
See Also
cbreak(3cur), keypad(3cur), nodelay(3cur), noecho(3cur)
Guide to X/Open Curses Screen-Handling
getch(3cur)