blob: 6b2a480539a988d298cb7bd5a61b7e62834a8699 [file] [log] [blame]
adamdunkels2d015312003-07-02 21:34:00 +00001/*
2 * Copyright (c) 2002, Adam Dunkels.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above
11 * copyright notice, this list of conditions and the following
12 * disclaimer in the documentation and/or other materials provided
13 * with the distribution.
adamdunkels76a4c4a2004-06-06 05:52:21 +000014 * 3. The name of the author may not be used to endorse or promote
adamdunkels2d015312003-07-02 21:34:00 +000015 * products derived from this software without specific prior
16 * written permission.
17 *
18 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
19 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
22 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
24 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
26 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 *
30 * This file is part of the "ctk" console GUI toolkit for cc65
31 *
adamdunkelsd802d772004-08-09 20:24:17 +000032 * $Id: ctk-vncarch.h,v 1.4 2004/08/09 20:24:17 adamdunkels Exp $
adamdunkels2d015312003-07-02 21:34:00 +000033 *
34 */
35#ifndef __CTK_VNCARCH_H__
36#define __CTK_VNCARCH_H__
37
38
39typedef char ctk_arch_key_t;
40
41unsigned char ctk_arch_keyavail(void);
42ctk_arch_key_t ctk_arch_getkey(void);
43
44#define CH_ENTER 0x0d
45#define CH_DEL 0x08
46
47#define CH_ESC 0x1b
48
49#define CH_HOME 0x50
50
51#define CH_TAB 0x09
52
53#define CH_CURS_LEFT 0x51
54#define CH_CURS_UP 0x52
55#define CH_CURS_RIGHT 0x53
56#define CH_CURS_DOWN 0x54
57
58
adamdunkels3c01d282003-08-12 21:09:33 +000059#define CH_F1 0xbe
adamdunkelsd802d772004-08-09 20:24:17 +000060#define CH_F2 0xbf
adamdunkels3c01d282003-08-12 21:09:33 +000061#define CH_F3 0xc0
adamdunkelsd802d772004-08-09 20:24:17 +000062#define CH_F4 0xc1
adamdunkels3c01d282003-08-12 21:09:33 +000063#define CH_F5 0xc2
adamdunkelsd802d772004-08-09 20:24:17 +000064#define CH_F6 0xc3
adamdunkels3c01d282003-08-12 21:09:33 +000065#define CH_F7 0xc4
adamdunkels2d015312003-07-02 21:34:00 +000066
67
68
69#endif /* __CTK_VNCARCH_H__ */