| 1 |
sysadm |
1.1 |
/***************************************************************************
|
| 2 |
|
|
io.h - description
|
| 3 |
|
|
-------------------
|
| 4 |
|
|
begin : Mon Oct 18 2004
|
| 5 |
|
|
copyright : (C) 2004 by Leaflet
|
| 6 |
|
|
email : leaflet@leafok.com
|
| 7 |
|
|
***************************************************************************/
|
| 8 |
|
|
|
| 9 |
|
|
/***************************************************************************
|
| 10 |
|
|
* *
|
| 11 |
|
|
* This program is free software; you can redistribute it and/or modify *
|
| 12 |
|
|
* it under the terms of the GNU General Public License as published by *
|
| 13 |
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
| 14 |
|
|
* (at your option) any later version. *
|
| 15 |
|
|
* *
|
| 16 |
|
|
***************************************************************************/
|
| 17 |
|
|
|
| 18 |
|
|
#include <stdio.h>
|
| 19 |
|
|
|
| 20 |
|
|
#define ESC_KEY '\033'
|
| 21 |
|
|
#define CR '\r'
|
| 22 |
|
|
#define LF '\n'
|
| 23 |
|
|
#define BACKSPACE '\b'
|
| 24 |
|
|
#define BELL '\b'
|
| 25 |
sysadm |
1.3 |
#define KEY_SPACE '\040'
|
| 26 |
sysadm |
1.1 |
#define KEY_UP 0x101
|
| 27 |
|
|
#define KEY_DOWN 0x102
|
| 28 |
|
|
#define KEY_LEFT 0x103
|
| 29 |
|
|
#define KEY_RIGHT 0x104
|
| 30 |
sysadm |
1.3 |
#define KEY_HOME 0x105
|
| 31 |
|
|
#define KEY_END 0x106
|
| 32 |
|
|
#define KEY_PGUP 0x107
|
| 33 |
|
|
#define KEY_PGDOWN 0x108
|
| 34 |
|
|
|
| 35 |
|
|
#define Ctrl(C) ((C) - 'A' + 1)
|
| 36 |
sysadm |
1.2 |
|
| 37 |
|
|
extern int screen_lines;
|