Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

81 lines
2.3 KiB

  1. /* viewdata.hh -- Common definitions for HyperACCESS/5 Viewdata
  2. * terminal emualation routines
  3. *
  4. * Copyright 1990 by Hilgraeve Inc. -- Monroe, MI
  5. * All rights reserved
  6. *
  7. * $Revision: 1 $
  8. * $Date: 10/05/98 12:28p $
  9. */
  10. /* maxcol definitions */
  11. #define VIEWDATA_COLS_40MODE 40
  12. /* attribute definitions */
  13. #define ALPHA_ATTR 0x01
  14. #define MOSAIC_ATTR 0x02
  15. #define CONTIGUOUS_ATTR 0x03
  16. #define SEPARATED_ATTR 0x04
  17. #define NORMALSIZE_ATTR 0x05
  18. #define FLASH_ATTR 0x06
  19. #define STEADY_ATTR 0x07
  20. #define NEW_BACKGROUND_ATTR 0x08
  21. #define DOUBLESIZE_ATTR 0x09
  22. #define CONCEAL_ATTR 0x0A
  23. /* --- view datat attribute structure --- */
  24. typedef struct _viewdata
  25. {
  26. unsigned int attr : 4; // attribute type
  27. unsigned int clr : 4; // color if attribute type is color
  28. unsigned int smosaic : 1; // separated mosaics
  29. unsigned int cmosaic : 1; // contigous mosaics
  30. //unsigned int dblsiz : 1; // double size
  31. } STVIEWDATA;
  32. typedef STVIEWDATA *PSTVIEWDATA;
  33. // Private emulator data for Viewdata.
  34. //
  35. typedef struct stPrivateViewdata
  36. {
  37. PSTVIEWDATA *apstVD;
  38. int fMosaicMode,
  39. fSeperatedMosaic,
  40. fSetAttr;
  41. unsigned aMapColors[7];
  42. } VIEWDATAPRIVATE;
  43. typedef VIEWDATAPRIVATE *PSTVIEWDATAPRIVATE;
  44. /* --- viewdini.c --- */
  45. void EmuViewdataInit(const HHEMU hhEmu);
  46. void EmuViewdataDeinstall(const HHEMU hhEmu);
  47. /* --- viewdata.c --- */
  48. void EmuViewdataAnswerback(const HHEMU hhEmu);
  49. void EmuViewdataCursorLeft(const HHEMU hhEmu);
  50. void EmuViewdataCursorRight(const HHEMU hhEmu);
  51. void EmuViewdataCursorDown(const HHEMU hhEmu);
  52. void EmuViewdataCursorUp(const HHEMU hhEmu);
  53. void EmuViewdataCursorHome(const HHEMU hhEmu);
  54. void EmuViewdataCursorSet(const HHEMU hhEmu);
  55. void EmuViewdataSetAttr(const HHEMU hhEmu);
  56. void EmuViewdataMosaicSet(const HHEMU hhEmu);
  57. void EmuViewdataMosaicHold(const HHEMU hhEmu);
  58. void EmuViewdataMosaicRelease(const HHEMU hhEmu);
  59. void EmuViewdataCharDisplay(const HHEMU hhEmu);
  60. int EmuViewdataReset(const HHEMU hhEmu, int const fHost);
  61. int EmuViewdataKbd(const HHEMU hhEmu, int kcode, const BOOL fTest);
  62. int emuViewdataPadAttrStr(const HHEMU hhEmu, int iRow, const int iCol, const TCHAR tchar);
  63. void EmuViewdataClearScreen(const HHEMU hhEmu);
  64. /**************************** end of viewdata.hh ***************************/