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