-
Notifications
You must be signed in to change notification settings - Fork 0
/
vt52vnc.h
49 lines (38 loc) · 1.02 KB
/
vt52vnc.h
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
#ifndef _VT52VNC_H
#define _VT52VNC_H
#include "rfbproto.h"
#define DEF_PORT 5900
/* vncproto.c */
int vncproto_init(char * addr, int port);
int request_vnc_refresh(int fd);
int parse_vnc_in(int fd);
int parse_kbd_in(int kbdfd, int fd);
int drawdelta(void); /* 0 = all_ok */
/* graphics.c */
#define BUFLEN 1024
typedef struct { char outbuf[BUFLEN];
int pos;
} t_kanal;
typedef struct { int x;
int y;
} t_pos;
t_kanal k;
#define VT52_XMAX 512
#define VT52_YMAX 256
void gcls( t_kanal *k );
void gputc( t_kanal *k, char c );
void gdrawto( t_kanal *k ,int x,int y );
void gflush( t_kanal *k );
void gline( t_kanal *k ,int x1,int y1, int x2, int y2 );
void gpline( t_kanal *k , t_pos *pos, int num );
void gplot( t_kanal *k ,int x,int y );
void greset( t_kanal *k );
unsigned long get_stat(void);
#define GA_OR 1
#define GA_XOR 2
#define GA_DEL 4
#define GA_PATTERN 8
void gset_attrib( t_kanal *k, int attrib );
void gset_scaling( t_kanal *k, int xfactor, int yfactor );
void gsetpos( t_kanal *k, int x, int y );
#endif