File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / trafshow / getkey.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 16:55:18 2012 UTC (12 years, 4 months ago) by misho
Branches: trafshow, MAIN
CVS tags: v5_2_3p0, v5_2_3, HEAD
trafshow

    1: /*
    2:  *	Copyright (c) 2004 Rinet Corp., Novosibirsk, Russia
    3:  *
    4:  * Redistribution and use in source forms, with and without modification,
    5:  * are permitted provided that this entire comment appears intact.
    6:  *
    7:  * THIS SOURCE CODE IS PROVIDED ``AS IS'' WITHOUT ANY WARRANTIES OF ANY KIND.
    8:  */
    9: 
   10: #ifndef	_GETKEY_H_
   11: #define	_GETKEY_H_
   12: 
   13: #define	MAX_PARAM_LEN	512
   14: 
   15: #define	ESCAPE		'\033'
   16: #define	K_CTRL(c)	((c) & 0x1f)
   17: #define	K_DEL		0x7f
   18: #define	K_CR		'\r'
   19: #define	K_NL		'\n'
   20: #define	K_BS		'\b'
   21: #define	K_TAB		'\t'
   22: 
   23: /* arrow keys */
   24: #define	K_ARROW(c)	((c) & 0x0f00)
   25: #define	K_ESC		0x0100
   26: #define	K_UP		0x0200
   27: #define	K_DOWN		0x0300
   28: #define	K_LEFT		0x0400
   29: #define	K_RIGHT		0x0500
   30: #define	K_PAGEUP	0x0600
   31: #define	K_PAGEDOWN	0x0700
   32: #define	K_HOME		0x0800
   33: #define	K_END		0x0900
   34: #define	K_INS		0x0a00
   35: 
   36: /* func keys */
   37: #define	K_FUNC(c)	((c) & 0xf000)
   38: #define	K_F1		0x1000
   39: #define	K_F2		0x2000
   40: #define	K_F3		0x3000
   41: #define	K_F4		0x4000
   42: #define	K_F5		0x5000
   43: #define	K_F6		0x6000
   44: #define	K_F7		0x7000
   45: #define	K_F8		0x8000
   46: #define	K_F9		0x9000
   47: #define	K_F10		0xa000
   48: #define	K_F11		0xb000
   49: #define	K_F12		0xc000
   50: 
   51: struct pcap_handler;
   52: void getkey_init(struct pcap_handler *ph_list);
   53: 
   54: #endif	/* !_GETKEY_H_ */

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>