Subversion Repositories Kolibri OS

Rev

Rev 6685 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. #ifndef INCLUDE_CONSOLE_H
  2. #define INCLUDE_CONSOLE_H
  3.  
  4. #ifndef INCLUDE_KOLIBRI_H
  5. #include "../lib/kolibri.h"
  6. #endif
  7.  
  8. #ifndef INCLUDE_DLL_H
  9. #include "../lib/dll.h"
  10. #endif
  11.  
  12. dword libConsole = #alibConsole;
  13. char alibConsole[] = "/sys/lib/console.obj";
  14.  
  15. dword con_start             = #a_con_start;
  16. dword con_init              = #a_con_init;
  17. dword con_write_asciiz      = #a_con_write_asciiz;
  18. dword con_write_string      = #a_con_write_string;
  19. dword con_printf            = #a_con_printf;
  20. dword con_exit              = #a_con_exit;
  21. dword con_get_flags         = #a_con_get_flags;
  22. dword con_set_flags         = #a_con_set_flags;
  23. dword con_kbhit             = #a_con_kbhit;
  24. dword con_getch             = #a_con_getch;
  25. dword con_getch2            = #a_con_getch2;
  26. dword con_gets              = #a_con_gets;
  27. dword con_gets2             = #a_con_gets2;
  28. dword con_get_font_height   = #a_con_get_font_height;
  29. dword con_get_cursor_height = #a_con_get_cursor_height;
  30. dword con_set_cursor_height = #a_con_set_cursor_height;
  31. dword con_cls               = #a_con_cls;
  32. dword con_get_cursor_pos    = #a_con_get_cursor_pos;
  33. dword con_set_cursor_pos    = #a_con_set_cursor_pos;
  34. dword con_set_title         = #a_con_set_title;
  35. $DD 2 dup 0
  36.  
  37. char a_con_start[]             = "START";
  38. char a_con_init[]              = "con_init";
  39. char a_con_write_asciiz[]      = "con_write_asciiz";
  40. char a_con_write_string[]      = "con_write_string";
  41. char a_con_printf[]            = "con_printf";
  42. char a_con_exit[]              = "con_exit";
  43. char a_con_get_flags[]         = "con_get_flags";
  44. char a_con_set_flags[]         = "con_set_flags";
  45. char a_con_kbhit[]             = "con_kbhit";
  46. char a_con_getch[]             = "con_getch";
  47. char a_con_getch2[]            = "con_getch2";
  48. char a_con_gets[]              = "con_gets";
  49. char a_con_gets2[]             = "con_gets2";
  50. char a_con_get_font_height[]   = "con_get_font_height";
  51. char a_con_get_cursor_height[] = "con_get_cursor_height";
  52. char a_con_set_cursor_height[] = "con_set_cursor_height";
  53. char a_con_cls[]               = "con_cls";
  54. char a_con_get_cursor_pos[]    = "con_get_cursor_pos";
  55. char a_con_set_cursor_pos[]    = "con_set_cursor_pos";
  56. char a_con_set_title[]         = "con_set_title";
  57.  
  58. // text color
  59. #define CON_COLOR_BLUE   0x01
  60. #define CON_COLOR_GREEN  0x02
  61. #define CON_COLOR_RED    0x04
  62. #define CON_COLOR_BRIGHT 0x08
  63.  
  64. // background color
  65. #define CON_BGR_BLUE   0x10
  66. #define CON_BGR_GREEN  0x20
  67. #define CON_BGR_RED    0x40
  68. #define CON_BGR_BRIGHT 0x80
  69.  
  70. // special
  71. #define CON_IGNORE_SPECIALS 0x100
  72. #define CON_WINDOW_CLOSED   0x200
  73.  
  74. #endif