Module: FFI::NCurses::KeyDefs

Extended by:
KeyHelper
Includes:
KeyHelper
Included in:
FFI::NCurses, Ncurses
Defined in:
lib/ffi-ncurses/keydefs.rb

Defined Under Namespace

Modules: KeyHelper

Constant Summary collapse

KEY_TAB =
9
KEY_RETURN =
10
KEY_ESCAPE =
27
KEY_CODE_YES =

Note: these are octal numbers.

0400
KEY_MIN =

A wchar_t contains a key code

0401
KEY_BREAK =

Minimum curses key

0401
KEY_SRESET =

Break key (unreliable)

0530
KEY_RESET =

Soft (partial) reset (unreliable)

0531
KEY_DOWN =

Reset or hard reset (unreliable)

0402
KEY_UP =

down-arrow key

0403
KEY_LEFT =

up-arrow key

0404
KEY_RIGHT =

left-arrow key

0405
KEY_HOME =

right-arrow key

0406
KEY_BACKSPACE =

home key

0407
KEY_F0 =

backspace key

0410
KEY_DL =

Function keys. Space for 64

0510
KEY_IL =

delete-line key

0511
KEY_DC =

insert-line key

0512
KEY_IC =

delete-character key

0513
KEY_EIC =

insert-character key

0514
KEY_CLEAR =

sent by rmir or smir in insert mode

0515
KEY_EOS =

clear-screen or erase key

0516
KEY_EOL =

clear-to-end-of-screen key

0517
KEY_SF =

clear-to-end-of-line key

0520
KEY_SR =

scroll-forward key

0521
KEY_NPAGE =

scroll-backward key

0522
KEY_PPAGE =

next-page key

0523
KEY_STAB =

previous-page key

0524
KEY_CTAB =

set-tab key

0525
KEY_CATAB =

clear-tab key

0526
KEY_ENTER =

clear-all-tabs key

0527
KEY_PRINT =

enter/send key

0532
KEY_LL =

print key

0533
KEY_A1 =

lower-left key (home down)

0534
KEY_A3 =

upper left of keypad

0535
KEY_B2 =

upper right of keypad

0536
KEY_C1 =

center of keypad

0537
KEY_C3 =

lower left of keypad

0540
KEY_BTAB =

lower right of keypad

0541
KEY_BEG =

back-tab key

0542
KEY_CANCEL =

begin key

0543
KEY_CLOSE =

cancel key

0544
KEY_COMMAND =

close key

0545
KEY_COPY =

command key

0546
KEY_CREATE =

copy key

0547
KEY_END =

create key

0550
KEY_EXIT =

end key

0551
KEY_FIND =

exit key

0552
KEY_HELP =

find key

0553
KEY_MARK =

help key

0554
KEY_MESSAGE =

mark key

0555
KEY_MOVE =

message key

0556
KEY_NEXT =

move key

0557
KEY_OPEN =

next key

0560
KEY_OPTIONS =

open key

0561
KEY_PREVIOUS =

options key

0562
KEY_REDO =

previous key

0563
KEY_REFERENCE =

redo key

0564
KEY_REFRESH =

reference key

0565
KEY_REPLACE =

refresh key

0566
KEY_RESTART =

replace key

0567
KEY_RESUME =

restart key

0570
KEY_SAVE =

resume key

0571
KEY_SBEG =

save key

0572
KEY_SCANCEL =

shifted begin key

0573
KEY_SCOMMAND =

shifted cancel key

0574
KEY_SCOPY =

shifted command key

0575
KEY_SCREATE =

shifted copy key

0576
KEY_SDC =

shifted create key

0577
KEY_SDL =

shifted delete-character key

0600
KEY_SELECT =

shifted delete-line key

0601
KEY_SEND =

select key

0602
KEY_SEOL =

shifted end key

0603
KEY_SEXIT =

shifted clear-to-end-of-line key

0604
KEY_SFIND =

shifted exit key

0605
KEY_SHELP =

shifted find key

0606
KEY_SHOME =

shifted help key

0607
KEY_SIC =

shifted home key

0610
KEY_SLEFT =

shifted insert-character key

0611
KEY_SMESSAGE =

shifted left-arrow key

0612
KEY_SMOVE =

shifted message key

0613
KEY_SNEXT =

shifted move key

0614
KEY_SOPTIONS =

shifted next key

0615
KEY_SPREVIOUS =

shifted options key

0616
KEY_SPRINT =

shifted previous key

0617
KEY_SREDO =

shifted print key

0620
KEY_SREPLACE =

shifted redo key

0621
KEY_SRIGHT =

shifted replace key

0622
KEY_SRSUME =

shifted right-arrow key

0623
KEY_SSAVE =

shifted resume key

0624
KEY_SSUSPEND =

shifted save key

0625
KEY_SUNDO =

shifted suspend key

0626
KEY_SUSPEND =

shifted undo key

0627
KEY_UNDO =

suspend key

0630
KEY_MOUSE =

undo key

0631
KEY_RESIZE =

Mouse event has occurred

0632
KEY_EVENT =

Terminal resize event

0633
KEY_MAX =

We were interrupted by an event

0777

Method Summary

Methods included from KeyHelper

KEY_CTRL, KEY_F