Changes in uspace/lib/clui/tinput.h [9f1362d4:5db9084] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/clui/tinput.h
r9f1362d4 r5db9084 29 29 /** @addtogroup libclui 30 30 * @{ 31 */ 31 */ 32 32 /** 33 33 * @file … … 37 37 #define LIBCLUI_TINPUT_H_ 38 38 39 #include <ipc/ipc.h> 40 41 #define HISTORY_LEN 10 42 #define INPUT_MAX_SIZE 1024 39 #define HISTORY_LEN 10 40 #define INPUT_MAX_SIZE 1024 43 41 44 42 /** Text input field (command line). … … 49 47 /** Buffer holding text currently being edited */ 50 48 wchar_t buffer[INPUT_MAX_SIZE + 1]; 51 52 49 /** Screen coordinates of the top-left corner of the text field */ 53 ipcarg_t col0; 54 ipcarg_t row0; 55 50 int col0, row0; 56 51 /** Screen dimensions */ 57 ipcarg_t con_cols; 58 ipcarg_t con_rows; 59 52 int con_cols, con_rows; 60 53 /** Number of characters in @c buffer */ 61 size_t nc; 62 54 int nc; 63 55 /** Caret position within buffer */ 64 size_t pos; 65 56 int pos; 66 57 /** Selection mark position within buffer */ 67 size_t sel_start;68 58 int sel_start; 59 69 60 /** History (dynamically allocated strings) */ 70 char *history[HISTORY_LEN + 1]; 71 61 char *history[1 + HISTORY_LEN]; 72 62 /** Number of entries in @c history, not counting [0] */ 73 size_t hnum; 74 63 int hnum; 75 64 /** Current position in history */ 76 size_t hpos; 77 65 int hpos; 78 66 /** @c true if finished with this line (return to caller) */ 79 67 bool done; 80 81 68 /** @c true if user requested to abort interactive loop */ 82 69 bool exit_clui; … … 84 71 85 72 extern tinput_t *tinput_new(void); 86 extern void tinput_destroy(tinput_t * );87 extern int tinput_read(tinput_t * , char **);73 extern void tinput_destroy(tinput_t *ti); 74 extern int tinput_read(tinput_t *ti, char **str); 88 75 89 76 #endif … … 91 78 /** @} 92 79 */ 80
Note:
See TracChangeset
for help on using the changeset viewer.