Home | History | Annotate | Line # | Download | only in troff
      1 /*	$NetBSD: input.h,v 1.1.1.1 2016/01/13 18:41:48 christos Exp $	*/
      2 
      3 // -*- C++ -*-
      4 /* Copyright (C) 2001, 2004 Free Software Foundation, Inc.
      5      Written by James Clark (jjc (at) jclark.com)
      6 
      7 This file is part of groff.
      8 
      9 groff is free software; you can redistribute it and/or modify it under
     10 the terms of the GNU General Public License as published by the Free
     11 Software Foundation; either version 2, or (at your option) any later
     12 version.
     13 
     14 groff is distributed in the hope that it will be useful, but WITHOUT ANY
     15 WARRANTY; without even the implied warranty of MERCHANTABILITY or
     16 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
     17 for more details.
     18 
     19 You should have received a copy of the GNU General Public License along
     20 with groff; see the file COPYING.  If not, write to the Free Software
     21 Foundation, 51 Franklin St - Fifth Floor, Boston, MA 02110-1301, USA. */
     22 
     23 
     24 /* special character codes */
     25 
     26 #ifndef IS_EBCDIC_HOST
     27 
     28 const int ESCAPE_QUESTION = 015;
     29 const int BEGIN_TRAP = 016;
     30 const int END_TRAP = 017;
     31 const int PAGE_EJECTOR = 020;
     32 const int ESCAPE_NEWLINE = 021;
     33 const int ESCAPE_AMPERSAND = 022;
     34 const int ESCAPE_UNDERSCORE = 023;
     35 const int ESCAPE_BAR = 024;
     36 const int ESCAPE_CIRCUMFLEX = 025;
     37 const int ESCAPE_LEFT_BRACE = 026;
     38 const int ESCAPE_RIGHT_BRACE = 027;
     39 const int ESCAPE_LEFT_QUOTE = 030;
     40 const int ESCAPE_RIGHT_QUOTE = 031;
     41 const int ESCAPE_HYPHEN = 032;
     42 const int ESCAPE_BANG = 033;
     43 const int ESCAPE_c = 034;
     44 const int ESCAPE_e = 035;
     45 const int ESCAPE_PERCENT = 036;
     46 const int ESCAPE_SPACE = 037;
     47 
     48 const int TITLE_REQUEST = 0200;
     49 const int COPY_FILE_REQUEST = 0201;
     50 const int TRANSPARENT_FILE_REQUEST = 0202;
     51 #ifdef COLUMN
     52 const int VJUSTIFY_REQUEST = 0203;
     53 #endif /* COLUMN */
     54 const int ESCAPE_E = 0204;
     55 const int LAST_PAGE_EJECTOR = 0205;
     56 const int ESCAPE_RIGHT_PARENTHESIS = 0206;
     57 const int ESCAPE_TILDE = 0207;
     58 const int ESCAPE_COLON = 0210;
     59 const int PUSH_GROFF_MODE = 0211;
     60 const int PUSH_COMP_MODE = 0212;
     61 const int POP_GROFFCOMP_MODE = 0213;
     62 const int BEGIN_QUOTE = 0214;
     63 const int END_QUOTE = 0215;
     64 
     65 #else /* IS_EBCDIC_HOST */
     66 
     67 const int ESCAPE_QUESTION = 010;
     68 const int BEGIN_TRAP = 011;
     69 const int END_TRAP = 013;
     70 const int PAGE_EJECTOR = 015;
     71 const int ESCAPE_NEWLINE = 016;
     72 const int ESCAPE_AMPERSAND = 017;
     73 const int ESCAPE_UNDERSCORE = 020;
     74 const int ESCAPE_BAR = 021;
     75 const int ESCAPE_CIRCUMFLEX = 022;
     76 const int ESCAPE_LEFT_BRACE = 023;
     77 const int ESCAPE_RIGHT_BRACE = 024;
     78 const int ESCAPE_LEFT_QUOTE = 027;
     79 const int ESCAPE_RIGHT_QUOTE = 030;
     80 const int ESCAPE_HYPHEN = 031;
     81 const int ESCAPE_BANG = 032;
     82 const int ESCAPE_c = 033;
     83 const int ESCAPE_e = 034;
     84 const int ESCAPE_PERCENT = 035;
     85 const int ESCAPE_SPACE = 036;
     86 
     87 const int TITLE_REQUEST = 060;
     88 const int COPY_FILE_REQUEST = 061;
     89 const int TRANSPARENT_FILE_REQUEST = 062;
     90 #ifdef COLUMN
     91 const int VJUSTIFY_REQUEST = 063;
     92 #endif /* COLUMN */
     93 const int ESCAPE_E = 064;
     94 const int LAST_PAGE_EJECTOR = 065;
     95 const int ESCAPE_RIGHT_PARENTHESIS = 066;
     96 const int ESCAPE_TILDE = 067;
     97 const int ESCAPE_COLON = 070;
     98 const int PUSH_GROFF_MODE = 071;
     99 const int PUSH_COMP_MODE = 072;
    100 const int POP_GROFFCOMP_MODE = 073;
    101 const int BEGIN_QUOTE = 074;
    102 const int END_QUOTE = 075;
    103 
    104 #endif /* IS_EBCDIC_HOST */
    105 
    106 extern void do_glyph_color(symbol);
    107 extern void do_fill_color(symbol);
    108