Back to index

tetex-bin  3.0
mftalk.h
Go to the documentation of this file.
00001 /* mftalk.h -- METAFONT server/client protocol (not as complex as
00002    it sounds).
00003 
00004    Copyright (C) 1994 Ralph Schleicher  */
00005 
00006 /* This library is free software; you can redistribute it and/or
00007    modify it under the terms of the GNU General Public License as
00008    published by the Free Software Foundation; either version 2 of
00009    the License, or (at your option) any later version.
00010 
00011    This library is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014    GNU General Public License for more details.
00015 
00016    You should have received a copy of the GNU General Public License
00017    along with this library; if not, write to the Free Software
00018    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
00019 
00020 #ifndef MFTALK_H
00021 #define MFTALK_H
00022 
00023 /* This is the server to client protocol:
00024 
00025    'r' [0|1] <left> <bottom> <right> <top>       Fill rectangle.
00026    'l' [0|1] <col> <row> <num> <col> ...  Draw a line.
00027    'f'                                    Update screen.
00028    ^D                                     End of transmission.
00029 
00030    And there is one client to server command:
00031 
00032    ^F                                     Acknowledgment.  */
00033 
00034 #define MF_RECT             ((int) 'r')
00035 #define MF_LINE             ((int) 'l')
00036 #define MF_FLUSH     ((int) 'f')
00037 #define MF_EXIT             ((int) ('D' - 64))
00038 #define MF_ACK              ((int) ('F' - 64))
00039 
00040 #define       MF_WHITE      0
00041 #define       MF_BLACK      1
00042 
00043 #endif /* !MFTALK_H */