term.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #ifndef TERM_H
  2. # define TERM_H
  3. # include <curses.h>
  4. # include <term.h>
  5. # include <termios.h>
  6. # include <sys/ioctl.h>
  7. # define UP -1
  8. # define DOWN 1
  9. /*
  10. ** term.c
  11. */
  12. void set_term_modes(int set);
  13. void prompt_get_cmd_keys(t_e *e);
  14. int read_std(t_e *e);
  15. void calculate_values(t_e *e);
  16. /*
  17. ** keys.c
  18. */
  19. void handle_keys(t_e *e, int all);
  20. void handle_keys2(t_e *e, int all);
  21. void handle_key_arrows(t_e *e, int all);
  22. /*
  23. ** term_edition.c
  24. */
  25. void insert(t_e *e);
  26. void suppr(t_e *e, int pos, int side);
  27. /*
  28. ** term_tools.c
  29. */
  30. void clear_l(t_e *e);
  31. void term_action(char *str);
  32. int my_outc(int c);
  33. void up_down_line(int side, t_e *e);
  34. /*
  35. ** move_horizontally.c
  36. */
  37. void words_move(int side, t_e *e);
  38. void move_right(t_e *e);
  39. void move_left(t_e *e);
  40. void end(t_e *e);
  41. void begin(t_e *e);
  42. /*
  43. ** history.c
  44. */
  45. void save_history(t_e *e, t_hist *new);
  46. t_hist *new_hist(char *cmd);
  47. void move_history(t_e *e, int side);
  48. void move_on_history(t_e *e, int side);
  49. /*
  50. ** history_tools.c
  51. */
  52. void display_history(t_e *e, int side);
  53. void print_history(char *cmd);
  54. void go_to_young_hist(t_e *e);
  55. void display_all_hist(t_e *e);
  56. #endif