Debian Codegraph @

texk/web2c/window/mftalk.h

raw
1 /* mftalk.h -- METAFONT server/client protocol (not as complex as
2 it sounds).
3
4 Copyright (C) 1994 Ralph Schleicher */
5
6 /* This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU General Public License as
8 published by the Free Software Foundation; either version 2 of
9 the License, or (at your option) any later version.
10
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this library; if not, write to the Free Software
18 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
19
20 #ifndef MFTALK_H
21 #define MFTALK_H
22
23 /* This is the server to client protocol:
24
25 'r' [0|1] <left> <bottom> <right> <top> Fill rectangle.
26 'l' [0|1] <col> <row> <num> <col> ... Draw a line.
27 'f' Update screen.
28 ^D End of transmission.
29
30 And there is one client to server command:
31
32 ^F Acknowledgment. */
33
34 #define MF_RECT ((int) 'r')
35 #define MF_LINE ((int) 'l')
36 #define MF_FLUSH ((int) 'f')
37 #define MF_EXIT ((int) ('D' - 64))
38 #define MF_ACK ((int) ('F' - 64))
39
40 #define MF_WHITE 0
41 #define MF_BLACK 1
42
43 #endif /* !MFTALK_H */