File: screen.h

package info (click to toggle)
xvt 2.1-18
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 320 kB
  • ctags: 430
  • sloc: ansic: 5,107; sh: 457; makefile: 85
file content (151 lines) | stat: -rw-r--r-- 4,228 bytes parent folder | download | duplicates (8)
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
/*  Copyright 1992 John Bovey, University of Kent at Canterbury.
 *
 *  Redistribution and use in source code and/or executable forms, with
 *  or without modification, are permitted provided that the following
 *  condition is met:
 *
 *  Any redistribution must retain the above copyright notice, this
 *  condition and the following disclaimer, either as part of the
 *  program source code included in the redistribution or in human-
 *  readable materials provided with the redistribution.
 *
 *  THIS SOFTWARE IS PROVIDED "AS IS".  Any express or implied
 *  warranties concerning this software are disclaimed by the copyright
 *  holder to the fullest extent permitted by applicable law.  In no
 *  event shall the copyright-holder be liable for any damages of any
 *  kind, however caused and on any theory of liability, arising in any
 *  way out of the use of, or inability to use, this software.
 *
 *  -------------------------------------------------------------------
 *
 *  In other words, do not misrepresent my work as your own work, and
 *  do not sue me if it causes problems.  Feel free to do anything else
 *  you wish with it.
 */

/* @(#)screen.h	1.2 16/11/93 (UKC) */

/*  flags for scr_move()
 */
#define COL_RELATIVE	1	/* column movement is relative */
#define ROW_RELATIVE	2	/* row movement is relative */

#define MAX_SCROLL	50	/* max number of lines that can scroll at once */

/*  arguments to the screen delete functions
 */
#define END	0
#define START	1
#define ENTIRE	2

/*  rendition style flags.
 */
#define RS_NONE		0x00	/* Normal */
#define RS_BOLD		0x01	/* Bold face */
#define RS_ULINE	0x02	/* underline */
#define RS_BLINK	0x04	/* blinking */
#define RS_RVID		0x08	/* reverse video */
#define RS_STYLE	0x0f	/* style mask */

/* character set flags.
 */
#define CS_USASCII	0x00
#define CS_UKASCII	0x10
#define CS_SPECIAL	0x20
#define CS_STYLE	0x30

/*  The current selection unit
 */
enum selunit {
	CHAR,
	WORD,
	LINE
};

#ifdef __STDC__
int is_string_char(int);
void scr_backspace(void);
void scr_bell(void);
void scr_change_rendition(int);
void scr_change_screen(int);
void scr_char_class(unsigned char *);
void scr_clear_selection(void);
void scr_delete_characters(int);
void scr_delete_lines(int);
void scr_efill(void);
void scr_erase_line(int);
void scr_erase_screen(int);
void scr_extend_selection(int,int,int);
void scr_focus(int,int);
void scr_get_size(int *,int *);
void scr_index(void);
void scr_init(int);
void scr_insert_characters(int);
void scr_insert_lines(int);
void scr_make_selection(int);
void scr_move(int,int,int);
void scr_move_by(int);
void scr_move_to(int);
void scr_paste_primary(int,int,int);
void scr_refresh(int,int,int,int);
void scr_report_display(void);
void scr_report_position(void);
void scr_request_selection(int,int,int);
void scr_reset(void);
void scr_restore_cursor(void);
void scr_rindex(void);
void scr_save_cursor(void);
void scr_send_selection(int,int,int,int);
void scr_set_char_set(int,int);
void scr_set_decom(int);
void scr_set_insert(int);
void scr_set_margins(int,int);
void scr_set_wrap(int);
void scr_shift(int);
void scr_start_selection(int,int,enum selunit);
void scr_string(unsigned char *,int,int);
void scr_tab(void);
#else /* __STDC__ */
int is_string_char();
void scr_backspace();
void scr_bell();
void scr_change_rendition();
void scr_change_screen();
void scr_char_class();
void scr_clear_selection();
void scr_delete_characters();
void scr_delete_lines();
void scr_efill();
void scr_erase_line();
void scr_erase_screen();
void scr_extend_selection();
void scr_focus();
void scr_get_size();
void scr_index();
void scr_init();
void scr_insert_characters();
void scr_insert_lines();
void scr_make_selection();
void scr_move();
void scr_move_by();
void scr_move_to();
void scr_paste_primary();
void scr_refresh();
void scr_report_display();
void scr_report_position();
void scr_request_selection();
void scr_reset();
void scr_restore_cursor();
void scr_rindex();
void scr_save_cursor();
void scr_send_selection();
void scr_set_char_set();
void scr_set_decom();
void scr_set_insert();
void scr_set_margins();
void scr_set_wrap();
void scr_shift();
void scr_start_selection();
void scr_string();
void scr_tab();
#endif /* __STDC__ */