keypad(3cur)keypad(3cur)Name
keypad - enable keypad
Syntax
#include <cursesX.h>
int keypad(win, bf)
WINDOW *win;
bool bf;
Description
This option enables the keypad of the user's terminal. If the keypad is enabled, pressing a function key (such as an arrow key) will
return a single value representing the function key. For example, pressing the left arrow key results in the value KEY_LEFT being
returned.. For more information see the Guide to X/Open Curses Screen-Handling. (R)
The routine is used to return the character. If the keypad is disabled, does not treat function keys as special keys and the program
interprets the escape sequences itself. Keypad layout is terminal dependent; some terminals do not even have a keypad.
Return Values
The function returns OK on success and ERR on error.
See Alsogetch(3cur)
Guide to X/Open Curses Screen-Handling
keypad(3cur)
Check Out this Related Man Page
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 Alsocbreak(3cur), keypad(3cur), nodelay(3cur), noecho(3cur)
Guide to X/Open Curses Screen-Handling
getch(3cur)
I'm running Mac OS, using the latest version of zsh.
I've noticed that I have funny tab-completion behavior when inside a screen session.
Specifically, once I press tab, the first part of my command seems to be duplicated before the completion results are inserted.
For example, if I type... (14 Replies)
Hi All,
I am facing a strange problem on one of my unix servers.
When i try to login using the standard method:
it fails with below message
>sqlplus REF1SSTDBO1/REF1SSTDBO1@TKS3N10G
> TKS3N10G
ksh: TKS3N10G: not found
But it works perfectly when i escape with ;\
>sqlplus... (3 Replies)
Hello Friends,
I have recently installed Open SUSE 12.1 with Gnome on Lenovo Thinkpad. I am using it with an external keyboard and monitor. The numpad of the keyboard seem to have some problems. Its not responding at all. I have tried numlock ON/OFF but with no success.
Some forums say, it... (3 Replies)
I use a program called TinyTerm to access our AIX machine. It works fine except for when I rlogin into our SCO unix server. Backspace doesn't delete, ctrl-c doesn't work (delete key does same thing), and the most annoying thing is vi acts very wierd. I have to press the down arrow like 3 times to... (11 Replies)
Putty: release 0.58
Operating system: Linux, release 2.6.36-rc7
Problem:
I use Putty to connet to server, initially everthing looks fine but after I browse some files, my keyboard acts funny, like if I keyin "cd", I got "je" on the screen. :wall:
This only happens on some existing files but... (4 Replies)
1. If there's some better place where xlib experts hang out, please tell me. Despite an assiduous search, I could not find an xlib reflector.
2. My actual question:
In an xterm, I want to grab and process all keyboard events in a program running inside the xterm. For example, with my program... (5 Replies)
Hi,
This is a bit lengthy problem, i will try to keep explaining it simple.
I have got a file say file1 that contains the following in it,
------------------------------------------------------------------------ r201463 | ngupta@gmail.com | 2012-06-19 22:02:20 +0530 (Tue, 19 Jun 2012) |... (3 Replies)
Hi, I've got a bit of a ridiculous problem and wasn't sure where to post it.
I need to use the vertical bar for piping in Bash but, as per the title, am using a UK layout on a US (physical) keyboard which doesn't have a key for it in the place I'd expect. I've tried using xbindkeys and Unicode... (7 Replies)
Hi, I'm new to python, and I work on a little program fpr my rapsberry pi.
This scenario here is a little Midi sysex app for my Roland D-50 Synthesizer.
With an usb attached number keypad I can type numbers from 0 to 9 and the referenced Midi sysex file would be send out to my Roland D-50... (1 Reply)
I have an array in an external file, "array.txt", which contains:
char *testarray={"Zero", "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine"};I want to be able to add an element to this array, and have that element display, whenever I call it, without having to recompile... (29 Replies)
Hi, all,
I'm writing a BBS telnet client, and am trying to implement a status bar into it, at the bottom of the screen.
I am using NCurses to accomplish this. So far, it appears to be working, that is, upon connecting to BBS, it
will display the status bar, and then quickly disappear.
... (5 Replies)
For keybinds, have used bbkeys with blackbox. Now, I can not compile it on debian 10, so I try to use xbindkeys
It work OK with commands, but not with blackbox actions, such as Alt+F4 to "close window", or Alt+Tab to "switch tasks", and so. I have searched the internet but I can't find data about... (1 Reply)
Hi,
I have an array, that works well. But, I want to have it display every other line. Like so, 1, 3, 5, 7, etc, etc.
Here is the relevant code:
I'm sorry for the pastebin link. For some reason, I can't get the code to format properly with the code tags.
code tags work fine... everyone... (4 Replies)
I'm trying to complete a bash script to capture if an external webcam is active in a video conference session. Some users will switch the camera to the built-in MAC camera. When this happens I want to trigger a set of events.
Things tried: reviewed the console.app to look for patterns on when... (6 Replies)