slackline_internals.h (566B)
1 #ifndef SLACKLINE_INTERNALS_H 2 #define SLACKLINE_INTERNALS_H 3 4 struct slackline; 5 6 enum direction {LEFT, RIGHT, HOME, END}; 7 8 enum { 9 CTRL_A = 1, 10 CTRL_B = 2, 11 CTRL_D = 4, 12 CTRL_E = 5, 13 CTRL_F = 6, 14 CTRL_K = 11, 15 CTRL_U = 21, 16 CTRL_T = 20, 17 CTRL_W = 23, 18 19 BACKSPACE = 127, 20 VT_BACKSPACE = 8, 21 22 ESC_KEY = 27 23 }; 24 25 size_t sl_postobyte(struct slackline *sl, size_t pos); 26 char *sl_postoptr(struct slackline *sl, size_t pos); 27 void sl_backspace(struct slackline *sl); 28 void sl_move(struct slackline *sl, enum direction dir); 29 void sl_emacs(struct slackline *sl, int key); 30 31 #endif