home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2008 February / PCWFEB08.iso / Software / Resources / Utilities / Partition Logic 0.68 / partlogic-0.68.iso / system / headers / sys / text.h < prev    next >
Encoding:
C/C++ Source or Header  |  2007-05-10  |  1.7 KB  |  60 lines

  1. // 
  2. //  Visopsys
  3. //  Copyright (C) 1998-2007 J. Andrew McLaughlin
  4. //  
  5. //  This library is free software; you can redistribute it and/or modify it
  6. //  under the terms of the GNU Lesser General Public License as published by
  7. //  the Free Software Foundation; either version 2.1 of the License, or (at
  8. //  your option) any later version.
  9. //
  10. //  This library is distributed in the hope that it will be useful, but
  11. //  WITHOUT ANY WARRANTY; without even the implied warranty of
  12. //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser
  13. //  General Public License for more details.
  14. //
  15. //  You should have received a copy of the GNU Lesser General Public License
  16. //  along with this library; if not, write to the Free Software Foundation,
  17. //  Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  18. //
  19. //  text.h
  20. //
  21.  
  22. // This file contains definitions and structures for using and manipulating
  23. // text in Visopsys.
  24.  
  25. #if !defined(_TEXT_H)
  26.  
  27. #include <sys/color.h>
  28.  
  29. // Definitions
  30. #define TEXT_STREAMSIZE               32768
  31. #define TEXT_DEFAULT_TAB              8
  32. #define TEXT_DEFAULT_SCROLLBACKLINES  256
  33.  
  34. #define TEXT_DEFAULT_FOREGROUND       COLOR_LIGHTGRAY
  35. #define TEXT_DEFAULT_BACKGROUND       COLOR_BLUE
  36.  
  37. // Flag values for the 'flags' field in the textAttrs structure
  38. #define TEXT_ATTRS_NOFORMAT           0x10
  39. #define TEXT_ATTRS_FOREGROUND         0x08
  40. #define TEXT_ATTRS_BACKGROUND         0x04
  41. #define TEXT_ATTRS_REVERSE            0x02
  42. #define TEXT_ATTRS_BLINKING           0x01
  43.  
  44. typedef struct {
  45.   int flags;
  46.   color foreground;
  47.   color background;
  48.  
  49. } textAttrs;
  50.  
  51. typedef struct {
  52.   int column;
  53.   int row;
  54.   unsigned char *data;
  55.  
  56. } textScreen;
  57.  
  58. #define _TEXT_H
  59. #endif
  60.