<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Keys</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="ncurses.colorconsts.html">Colors</a></div> <div class="next" style="text-align: right; float: right;"><a href="ncurses.mouseconsts.html">Mouse</a></div> <div class="up"><a href="ncurses.constants.html">Predefined Constants</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="ncurses.keyconsts" class="section"> <h2 class="title">Keys</h2> <table class="doctable table"> <caption><strong>ncurses key constants</strong></caption> <thead> <tr> <th>constant</th> <th>meaning</th> </tr> </thead> <tbody class="tbody"> <tr id="constant.ncurses-key-f0"> <td><strong><code>NCURSES_KEY_F0</code></strong> - <strong><code>NCURSES_KEY_F64</code></strong></td> <td>function keys F1 - F64</td> </tr> <tr id="constant.ncurses-key-down"> <td><strong><code>NCURSES_KEY_DOWN</code></strong></td> <td>down arrow</td> </tr> <tr id="constant.ncurses-key-up"> <td><strong><code>NCURSES_KEY_UP</code></strong></td> <td>up arrow</td> </tr> <tr id="constant.ncurses-key-left"> <td><strong><code>NCURSES_KEY_LEFT</code></strong></td> <td>left arrow</td> </tr> <tr id="constant.ncurses-key-right"> <td><strong><code>NCURSES_KEY_RIGHT</code></strong></td> <td>right arrow</td> </tr> <tr id="constant.ncurses-key-home"> <td><strong><code>NCURSES_KEY_HOME</code></strong></td> <td>home key (upward+left arrow)</td> </tr> <tr id="constant.ncurses-key-backspace"> <td><strong><code>NCURSES_KEY_BACKSPACE</code></strong></td> <td>backspace</td> </tr> <tr id="constant.ncurses-key-dl"> <td><strong><code>NCURSES_KEY_DL</code></strong></td> <td>delete line</td> </tr> <tr id="constant.ncurses-key-il"> <td><strong><code>NCURSES_KEY_IL</code></strong></td> <td>insert line</td> </tr> <tr id="constant.ncurses-key-dc"> <td><strong><code>NCURSES_KEY_DC</code></strong></td> <td>delete character</td> </tr> <tr id="constant.ncurses-key-ic"> <td><strong><code>NCURSES_KEY_IC</code></strong></td> <td>insert char or enter insert mode</td> </tr> <tr id="constant.ncurses-key-eic"> <td><strong><code>NCURSES_KEY_EIC</code></strong></td> <td>exit insert char mode</td> </tr> <tr id="constant.ncurses-key-clear"> <td><strong><code>NCURSES_KEY_CLEAR</code></strong></td> <td>clear screen</td> </tr> <tr id="constant.ncurses-key-eos"> <td><strong><code>NCURSES_KEY_EOS</code></strong></td> <td>clear to end of screen</td> </tr> <tr id="constant.ncurses-key-eol"> <td><strong><code>NCURSES_KEY_EOL</code></strong></td> <td>clear to end of line</td> </tr> <tr id="constant.ncurses-key-sf"> <td><strong><code>NCURSES_KEY_SF</code></strong></td> <td>scroll one line forward</td> </tr> <tr id="constant.ncurses-key-sr"> <td><strong><code>NCURSES_KEY_SR</code></strong></td> <td>scroll one line backward</td> </tr> <tr id="constant.ncurses-key-npage"> <td><strong><code>NCURSES_KEY_NPAGE</code></strong></td> <td>next page</td> </tr> <tr id="constant.ncurses-key-ppage"> <td><strong><code>NCURSES_KEY_PPAGE</code></strong></td> <td>previous page</td> </tr> <tr id="constant.ncurses-key-stab"> <td><strong><code>NCURSES_KEY_STAB</code></strong></td> <td>set tab</td> </tr> <tr id="constant.ncurses-key-ctab"> <td><strong><code>NCURSES_KEY_CTAB</code></strong></td> <td>clear tab</td> </tr> <tr id="constant.ncurses-key-catab"> <td><strong><code>NCURSES_KEY_CATAB</code></strong></td> <td>clear all tabs</td> </tr> <tr id="constant.ncurses-key-sreset"> <td><strong><code>NCURSES_KEY_SRESET</code></strong></td> <td>soft (partial) reset</td> </tr> <tr id="constant.ncurses-key-reset"> <td><strong><code>NCURSES_KEY_RESET</code></strong></td> <td>reset or hard reset</td> </tr> <tr id="constant.ncurses-key-print"> <td><strong><code>NCURSES_KEY_PRINT</code></strong></td> <td>print</td> </tr> <tr id="constant.ncurses-key-ll"> <td><strong><code>NCURSES_KEY_LL</code></strong></td> <td>lower left</td> </tr> <tr id="constant.ncurses-key-a1"> <td><strong><code>NCURSES_KEY_A1</code></strong></td> <td>upper left of keypad</td> </tr> <tr id="constant.ncurses-key-a3"> <td><strong><code>NCURSES_KEY_A3</code></strong></td> <td>upper right of keypad</td> </tr> <tr id="constant.ncurses-key-b2"> <td><strong><code>NCURSES_KEY_B2</code></strong></td> <td>center of keypad</td> </tr> <tr id="constant.ncurses-key-c1"> <td><strong><code>NCURSES_KEY_C1</code></strong></td> <td>lower left of keypad</td> </tr> <tr id="constant.ncurses-key-c3"> <td><strong><code>NCURSES_KEY_C3</code></strong></td> <td>lower right of keypad</td> </tr> <tr id="constant.ncurses-key-btab"> <td><strong><code>NCURSES_KEY_BTAB</code></strong></td> <td>back tab</td> </tr> <tr id="constant.ncurses-key-beg"> <td><strong><code>NCURSES_KEY_BEG</code></strong></td> <td>beginning</td> </tr> <tr id="constant.ncurses-key-cancel"> <td><strong><code>NCURSES_KEY_CANCEL</code></strong></td> <td>cancel</td> </tr> <tr id="constant.ncurses-key-close"> <td><strong><code>NCURSES_KEY_CLOSE</code></strong></td> <td>close</td> </tr> <tr id="constant.ncurses-key-command"> <td><strong><code>NCURSES_KEY_COMMAND</code></strong></td> <td>cmd (command)</td> </tr> <tr id="constant.ncurses-key-copy"> <td><strong><code>NCURSES_KEY_COPY</code></strong></td> <td>copy</td> </tr> <tr id="constant.ncurses-key-create"> <td><strong><code>NCURSES_KEY_CREATE</code></strong></td> <td>create</td> </tr> <tr id="constant.ncurses-key-end"> <td><strong><code>NCURSES_KEY_END</code></strong></td> <td>end</td> </tr> <tr id="constant.ncurses-key-exit"> <td><strong><code>NCURSES_KEY_EXIT</code></strong></td> <td>exit</td> </tr> <tr id="constant.ncurses-key-find"> <td><strong><code>NCURSES_KEY_FIND</code></strong></td> <td>find</td> </tr> <tr id="constant.ncurses-key-help"> <td><strong><code>NCURSES_KEY_HELP</code></strong></td> <td>help</td> </tr> <tr id="constant.ncurses-key-mark"> <td><strong><code>NCURSES_KEY_MARK</code></strong></td> <td>mark</td> </tr> <tr id="constant.ncurses-key-message"> <td><strong><code>NCURSES_KEY_MESSAGE</code></strong></td> <td>message</td> </tr> <tr id="constant.ncurses-key-move"> <td><strong><code>NCURSES_KEY_MOVE</code></strong></td> <td>move</td> </tr> <tr id="constant.ncurses-key-next"> <td><strong><code>NCURSES_KEY_NEXT</code></strong></td> <td>next</td> </tr> <tr id="constant.ncurses-key-open"> <td><strong><code>NCURSES_KEY_OPEN</code></strong></td> <td>open</td> </tr> <tr id="constant.ncurses-key-options"> <td><strong><code>NCURSES_KEY_OPTIONS</code></strong></td> <td>options</td> </tr> <tr id="constant.ncurses-key-previous"> <td><strong><code>NCURSES_KEY_PREVIOUS</code></strong></td> <td>previous</td> </tr> <tr id="constant.ncurses-key-redo"> <td><strong><code>NCURSES_KEY_REDO</code></strong></td> <td>redo</td> </tr> <tr id="constant.ncurses-key-reference"> <td><strong><code>NCURSES_KEY_REFERENCE</code></strong></td> <td>ref (reference)</td> </tr> <tr id="constant.ncurses-key-refresh"> <td><strong><code>NCURSES_KEY_REFRESH</code></strong></td> <td>refresh</td> </tr> <tr id="constant.ncurses-key-replace"> <td><strong><code>NCURSES_KEY_REPLACE</code></strong></td> <td>replace</td> </tr> <tr id="constant.ncurses-key-restart"> <td><strong><code>NCURSES_KEY_RESTART</code></strong></td> <td>restart</td> </tr> <tr id="constant.ncurses-key-resume"> <td><strong><code>NCURSES_KEY_RESUME</code></strong></td> <td>resume</td> </tr> <tr id="constant.ncurses-key-save"> <td><strong><code>NCURSES_KEY_SAVE</code></strong></td> <td>save</td> </tr> <tr id="constant.ncurses-key-sbeg"> <td><strong><code>NCURSES_KEY_SBEG</code></strong></td> <td>shiftet beg (beginning)</td> </tr> <tr id="constant.ncurses-key-scancel"> <td><strong><code>NCURSES_KEY_SCANCEL</code></strong></td> <td>shifted cancel</td> </tr> <tr id="constant.ncurses-key-scommand"> <td><strong><code>NCURSES_KEY_SCOMMAND</code></strong></td> <td>shifted command</td> </tr> <tr id="constant.ncurses-key-scopy"> <td><strong><code>NCURSES_KEY_SCOPY</code></strong></td> <td>shifted copy</td> </tr> <tr id="constant.ncurses-key-screate"> <td><strong><code>NCURSES_KEY_SCREATE</code></strong></td> <td>shifted create</td> </tr> <tr id="constant.ncurses-key-sdc"> <td><strong><code>NCURSES_KEY_SDC</code></strong></td> <td>shifted delete char</td> </tr> <tr id="constant.ncurses-key-sdl"> <td><strong><code>NCURSES_KEY_SDL</code></strong></td> <td>shifted delete line</td> </tr> <tr id="constant.ncurses-key-select"> <td><strong><code>NCURSES_KEY_SELECT</code></strong></td> <td>select</td> </tr> <tr id="constant.ncurses-key-send"> <td><strong><code>NCURSES_KEY_SEND</code></strong></td> <td>shifted end</td> </tr> <tr id="constant.ncurses-key-seol"> <td><strong><code>NCURSES_KEY_SEOL</code></strong></td> <td>shifted end of line</td> </tr> <tr id="constant.ncurses-key-sexit"> <td><strong><code>NCURSES_KEY_SEXIT</code></strong></td> <td>shifted exit</td> </tr> <tr id="constant.ncurses-key-sfind"> <td><strong><code>NCURSES_KEY_SFIND</code></strong></td> <td>shifted find</td> </tr> <tr id="constant.ncurses-key-shelp"> <td><strong><code>NCURSES_KEY_SHELP</code></strong></td> <td>shifted help</td> </tr> <tr id="constant.ncurses-key-shome"> <td><strong><code>NCURSES_KEY_SHOME</code></strong></td> <td>shifted home</td> </tr> <tr id="constant.ncurses-key-sic"> <td><strong><code>NCURSES_KEY_SIC</code></strong></td> <td>shifted input</td> </tr> <tr id="constant.ncurses-key-sleft"> <td><strong><code>NCURSES_KEY_SLEFT</code></strong></td> <td>shifted left arrow</td> </tr> <tr id="constant.ncurses-key-smessage"> <td><strong><code>NCURSES_KEY_SMESSAGE</code></strong></td> <td>shifted message</td> </tr> <tr id="constant.ncurses-key-smove"> <td><strong><code>NCURSES_KEY_SMOVE</code></strong></td> <td>shifted move</td> </tr> <tr id="constant.ncurses-key-snext"> <td><strong><code>NCURSES_KEY_SNEXT</code></strong></td> <td>shifted next</td> </tr> <tr id="constant.ncurses-key-soptions"> <td><strong><code>NCURSES_KEY_SOPTIONS</code></strong></td> <td>shifted options</td> </tr> <tr id="constant.ncurses-key-sprevious"> <td><strong><code>NCURSES_KEY_SPREVIOUS</code></strong></td> <td>shifted previous</td> </tr> <tr id="constant.ncurses-key-sprint"> <td><strong><code>NCURSES_KEY_SPRINT</code></strong></td> <td>shifted print</td> </tr> <tr id="constant.ncurses-key-sredo"> <td><strong><code>NCURSES_KEY_SREDO</code></strong></td> <td>shifted redo</td> </tr> <tr id="constant.ncurses-key-sreplace"> <td><strong><code>NCURSES_KEY_SREPLACE</code></strong></td> <td>shifted replace</td> </tr> <tr id="constant.ncurses-key-sright"> <td><strong><code>NCURSES_KEY_SRIGHT</code></strong></td> <td>shifted right arrow</td> </tr> <tr id="constant.ncurses-key-srsume"> <td><strong><code>NCURSES_KEY_SRSUME</code></strong></td> <td>shifted resume</td> </tr> <tr id="constant.ncurses-key-ssave"> <td><strong><code>NCURSES_KEY_SSAVE</code></strong></td> <td>shifted save</td> </tr> <tr id="constant.ncurses-key-ssuspend"> <td><strong><code>NCURSES_KEY_SSUSPEND</code></strong></td> <td>shifted suspend</td> </tr> <tr id="constant.ncurses-key-undo"> <td><strong><code>NCURSES_KEY_UNDO</code></strong></td> <td>undo</td> </tr> <tr id="constant.ncurses-key-mouse"> <td><strong><code>NCURSES_KEY_MOUSE</code></strong></td> <td>mouse event has occurred</td> </tr> <tr id="constant.ncurses-key-max"> <td><strong><code>NCURSES_KEY_MAX</code></strong></td> <td>maximum key value</td> </tr> </tbody> </table> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="ncurses.colorconsts.html">Colors</a></div> <div class="next" style="text-align: right; float: right;"><a href="ncurses.mouseconsts.html">Mouse</a></div> <div class="up"><a href="ncurses.constants.html">Predefined Constants</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>