home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS 1992 December / simtel1292_SIMTEL_1292_Walnut_Creek.iso / msdos / gnuish / mkinf10.arc / pc_term.h < prev    next >
C/C++ Source or Header  |  1990-11-01  |  2KB  |  88 lines

  1. /* pc_term.h - BIOS video calls for GNU info
  2.    Copyright (C) 1990 Free Software Foundation, Inc.
  3.    Thorsten Ohl <td12@ddagsi3.bitnet>, 1990
  4.  
  5.    This program is free software; you can redistribute it and/or modify
  6.    it under the terms of the GNU General Public License as published by
  7.    the Free Software Foundation; either version 1, or (at your option)
  8.    any later version.
  9.  
  10.    This program is distributed in the hope that it will be useful,
  11.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.    GNU General Public License for more details.
  14.  
  15.    You should have received a copy of the GNU General Public License
  16.    along with this program; if not, write to the Free Software
  17.    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  
  19.    $Header: e:/gnu/info/RCS/pc_term.h 0.3 90/10/07 21:35:09 tho Exp $
  20.  */
  21.  
  22. /* Interfacing info.c and pc_term.c  */
  23.  
  24. extern void do_term (int command);
  25. extern void opsys_init_terminal (void);
  26. extern void opsys_goto_pos (int x, int y);
  27. extern int pc_getc (void);
  28.  
  29.  
  30. /* Command codes.  */
  31.  
  32. #define terminal_ear_bell        257
  33. #define terminal_clearEOP        258
  34. #define terminal_clearEOL        259
  35. #define terminal_use_begin        260
  36. #define terminal_use_end        261
  37. #define terminal_inverse_begin        262
  38. #define terminal_end_attributes        263
  39.  
  40. extern int terminal_rows;
  41. extern int terminal_lines;
  42.  
  43.  
  44. /* Colors.  */
  45.  
  46. #define BRIGHT_ATTRIB    0x08
  47.  
  48. #define RED_ATTRIB    0x04
  49. #define GREEN_ATTRIB    0x02
  50. #define BLUE_ATTRIB    0x01
  51. #define BLACK_ATTRIB    0x00
  52.  
  53. #define WHITE_ATTRIB    (RED_ATTRIB|GREEN_ATTRIB|BLUE_ATTRIB)
  54.  
  55. #define FG_BG(f,b)    (((b##_ATTRIB) << 4) | (f##_ATTRIB))
  56.  
  57.  
  58. /* Pick your favourite colors here: */
  59.  
  60. #ifndef NORMAL_ATTRIB
  61. #ifndef MONOCHROME
  62. #define NORMAL_ATTRIB    FG_BG (WHITE, BLACK)
  63. #else
  64. #define NORMAL_ATTRIB    FG_BG (WHITE, BLACK)
  65. #endif
  66. #endif
  67.  
  68. #ifndef INVERSE_ATTRIB
  69. #ifndef MONOCHROME
  70. #define INVERSE_ATTRIB    FG_BG (BLUE, WHITE)
  71. #else
  72. #define INVERSE_ATTRIB    FG_BG (BLACK, WHITE)
  73. #endif
  74. #endif
  75.  
  76. /* 
  77.  * Local Variables:
  78.  * mode:C
  79.  * ChangeLog:ChangeLog
  80.  * compile-command:make
  81.  * End:
  82.  */
  83.  
  84.  
  85.  
  86.  
  87.  
  88.