keypad.3cur

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 3CUR 代码 · 共 51 行

3CUR
51
字号
.TH keypad 3cur .SH Namekeypad \- enable keypad.SH Syntax.br.B#include <cursesX.h>.PP.Bint keypad(win, bf).br.BWINDOW \(**win;.br.Bbool bf;.SH Description.NXR "keypad subroutine"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 thevalue KEY_LEFT being returned..For more information see the.IGuide to X/Open Curses Screen-Handling..R.PPThe routine .PN getch is used to return the character.If the keypadis disabled,.PN cursesdoes not treat function keys as special keys and the programinterprets the escape sequences itself.Keypad layout is terminal dependent;some terminals do not even have a keypad..SH Return ValuesThe.PN keypadfunction returns OK on success and ERR on error..SH See Alsogetch(3cur).br.I Guide to X/Open Curses Screen-Handling

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?