diff options
| author | Henrik Rydberg <rydberg@euromail.se> | 2011-10-08 20:30:28 +0200 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2011-10-08 20:30:28 +0200 |
| commit | 5df79c53745fde5d6c3340a2979b1429cd5892c1 (patch) | |
| tree | 1a81af141708b826e9c61e8a04019994fcca8298 /src/hed/input.h | |
Initial import of htcd system 1.0
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'src/hed/input.h')
| -rw-r--r-- | src/hed/input.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/src/hed/input.h b/src/hed/input.h new file mode 100644 index 0000000..76071ce --- /dev/null +++ b/src/hed/input.h | |||
| @@ -0,0 +1,52 @@ | |||
| 1 | /************************************************************************* | ||
| 2 | * | ||
| 3 | * HTCd - Copyright (C) 1998-2006 Henrik Rydberg | ||
| 4 | * | ||
| 5 | * This program is free software; you can redistribute it and/or modify | ||
| 6 | * it under the terms of the GNU General Public License as published by | ||
| 7 | * the Free Software Foundation; either version 2 of the License, or | ||
| 8 | * (at your option) any later version. | ||
| 9 | * | ||
| 10 | * This program is distributed in the hope that it will be useful, | ||
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 13 | * GNU General Public License for more details. | ||
| 14 | * | ||
| 15 | * You should have received a copy of the GNU General Public License | ||
| 16 | * along with this program; if not, write to the Free Software | ||
| 17 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
| 18 | */ | ||
| 19 | |||
| 20 | #include <mt/stringref.h> | ||
| 21 | |||
| 22 | #ifndef INPUTH | ||
| 23 | #define INPUTH | ||
| 24 | |||
| 25 | #define KK_DOWN 0402 | ||
| 26 | #define KK_UP 0403 | ||
| 27 | #define KK_LEFT 0404 | ||
| 28 | #define KK_RIGHT 0405 | ||
| 29 | #define KK_HOME 0406 | ||
| 30 | #define KK_F0 0410 | ||
| 31 | #define KK_F(n) (KK_F0+(n)) | ||
| 32 | #define KK_NPAGE 0522 | ||
| 33 | #define KK_PPAGE 0523 | ||
| 34 | #define KK_END 0550 | ||
| 35 | |||
| 36 | int Input(); | ||
| 37 | int RawInput(); | ||
| 38 | |||
| 39 | int Lines(); | ||
| 40 | int Columns(); | ||
| 41 | |||
| 42 | void ClearScreen(); | ||
| 43 | void MoveCursor(int i,int j); | ||
| 44 | void OutputField(int row,int col,int field,const sref& p); | ||
| 45 | void Reverse(int n); | ||
| 46 | void Bold(int n); | ||
| 47 | void Refresh(); | ||
| 48 | |||
| 49 | void InitCurses(); | ||
| 50 | void EndCurses(); | ||
| 51 | |||
| 52 | #endif | ||
