File: x_termcap.h

package info (click to toggle)
mlterm 3.1.2-1.3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 23,168 kB
  • sloc: ansic: 102,795; sh: 9,676; java: 2,018; perl: 1,601; makefile: 1,595; cpp: 771; sed: 16
file content (59 lines) | stat: -rw-r--r-- 997 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*
 *	$Id$
 */

#ifndef  __X_TERMCAP_H__
#define  __X_TERMCAP_H__


#include  <kiklib/kik_types.h>


typedef enum  x_termcap_str_field
{
	ML_DELETE ,
	ML_BACKSPACE ,
	ML_HOME ,
	ML_END ,
	
	MAX_TERMCAP_STR_FIELDS

} x_termcap_str_field_t ;

typedef enum  x_termcap_bool_field
{
	ML_BCE ,

	MAX_TERMCAP_BOOL_FIELDS

} x_termcap_bool_field_t ;

typedef struct  x_termcap_entry
{
	char *  name ;
	
	char *  str_fields[MAX_TERMCAP_STR_FIELDS] ;
	int8_t  bool_fields[MAX_TERMCAP_BOOL_FIELDS] ;

} x_termcap_entry_t ;

typedef struct  x_termcap
{
	x_termcap_entry_t *  entries ;
	u_int  num_of_entries ;

} x_termcap_t ;


int  x_termcap_init( x_termcap_t *  termcap) ;

int  x_termcap_final( x_termcap_t *  termcap) ;

x_termcap_entry_t *  x_termcap_get_entry( x_termcap_t *  termcap , char *  name) ;

char *   x_termcap_get_str_field( x_termcap_entry_t *  entry , x_termcap_str_field_t  field) ;

int   x_termcap_get_bool_field( x_termcap_entry_t *  entry , x_termcap_bool_field_t  field) ;


#endif