ekg2
|
00001 #include <stdio.h> 00002 #include <ekg/windows.h> 00003 00004 #define MAX_LINES_PER_SCREEN 300 00005 #define readline_current ((readline_window_t *) window_current->priv_data) 00006 #define readline_window(w) ((readline_window_t *) w->priv_data) 00007 00008 extern int config_ctrld_quits; 00009 00010 typedef struct { 00011 char *line[MAX_LINES_PER_SCREEN]; 00012 } readline_window_t; 00013 00014 /* deklaracje funkcji interfejsu */ 00015 int ui_readline_loop(); 00016 void ui_readline_init(); 00017 void ui_readline_print(window_t *w, int separate, const char *xline); 00018 int window_refresh(); 00019 const char *current_prompt(); 00020 int window_write(int id, const char *line); 00021 00022 char *window_activity(); 00023 int bind_sequence(const char *seq, const char *command, int quiet); 00024 int bind_handler_window(int a, int key); 00025 int my_getc(FILE *f); 00026 int my_loop(); 00027 char **my_completion(char *text, int start, int end); 00028 char *empty_generator(char *text, int state); 00029 00030 /* vars remove some !*/ 00031 extern int ui_need_refresh; /* DARK */ 00032 extern int ui_screen_width; 00033 extern int ui_screen_height; 00034 extern int pager_lines, screen_lines, screen_columns; 00035