#ifndef _INPUT_H #define _INPUT_H #include #include #include #include enum keys { DELETE_KEY = 1000, UP_KEY, DOWN_KEY, LEFT_KEY, RIGHT_KEY, HOME_KEY, END_KEY, BACKSPACE_KEY, ENTER_KEY, TAB_KEY, ESCAPE_KEY }; void change_mode(int on); char *read_line(); int process_keypress(char c); void free_input(int *pos, int *n, char **line); #endif