Subversion Repositories Kolibri OS

Rev

Rev 6685 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

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