Xurses...
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.

54 lines
1.7KB

  1. /*
  2. * Copyright (c) 2023 : Ognjen 'xolatile' Milan Robovic
  3. *
  4. * Xurses is free software! You will redistribute it or modify it under the terms of the GNU General Public License by Free Software Foundation.
  5. * And when you do redistribute it or modify it, it will use either version 3 of the License, or (at yours truly opinion) any later version.
  6. * It is distributed in the hope that it will be useful or harmful, it really depends... But no warranty what so ever, seriously. See GNU/GPLv3.
  7. */
  8. #ifndef XURSES_HEADER
  9. #define XURSES_HEADER
  10. #include <xolatile/xtandard.h>
  11. #include <xolatile/xtandard.c>
  12. #include <termios.h>
  13. #include <fcntl.h>
  14. #include <sys/ioctl.h>
  15. #include <sys/types.h>
  16. #include <sys/stat.h>
  17. extern int curses_active;
  18. extern int curses_cursor;
  19. extern char curses_signal;
  20. extern int curses_screen_width;
  21. extern int curses_screen_height;
  22. extern int curses_screen_size;
  23. extern char * curses_screen;
  24. extern void (* curses_action ['~' - ' ']) (void);
  25. extern struct termios curses_old_terminal;
  26. extern struct termios curses_new_terminal;
  27. extern void curses_initialize (void);
  28. extern void curses_deinitialize (void);
  29. extern void curses_synchronize (void);
  30. extern void curses_blank (void);
  31. extern void curses_character (char, int, int, int, int);
  32. extern void curses_append_character (char, int, int);
  33. extern void curses_append_string (char *, int, int, int);
  34. extern void curses_append_cursor (int, int);
  35. extern void curses_style (int, int);
  36. extern void curses_clear (void);
  37. extern void curses_show_cursor (int);
  38. extern void curses_bind (char, void (*) (void));
  39. extern void curses_unbind (char);
  40. extern void curses_idle (void);
  41. extern void curses_exit (void);
  42. #endif