Changeset d31c3ea in mainline for uspace/lib/vt/include
- Timestamp:
- 2024-10-01T11:13:28Z (16 months ago)
- Branches:
- master
- Children:
- 6907f26
- Parents:
- 357d9dd
- git-author:
- Jiri Svoboda <jiri@…> (2024-09-30 19:13:18)
- git-committer:
- Jiri Svoboda <jiri@…> (2024-10-01 11:13:28)
- File:
-
- 1 edited
-
uspace/lib/vt/include/vt/vt100.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/vt/include/vt/vt100.h
r357d9dd rd31c3ea 71 71 } sgr_command_t; 72 72 73 typedef void (*vt100_putuchar_t)(void *, char32_t ch); 74 typedef void (*vt100_control_puts_t)(void *, const char *str); 75 typedef void (*vt100_flush_t)(void *); 73 typedef struct { 74 void (*putuchar)(void *, char32_t); 75 void (*control_puts)(void *, const char *); 76 void (*flush)(void *); 77 } vt100_cb_t; 76 78 79 /** VT100 instance */ 77 80 typedef struct { 81 /** Number of columns */ 78 82 sysarg_t cols; 83 /** Number of rows */ 79 84 sysarg_t rows; 80 85 86 /** Current column */ 81 87 sysarg_t cur_col; 88 /** Current row */ 82 89 sysarg_t cur_row; 90 /** Current attributes */ 83 91 char_attrs_t cur_attrs; 84 92 93 /** Enable RGB color */ 85 94 bool enable_rgb; 86 95 96 /** Callback functions */ 97 vt100_cb_t *cb; 98 /** Argument to callback functions */ 87 99 void *arg; 88 vt100_putuchar_t putuchar;89 vt100_control_puts_t control_puts;90 vt100_flush_t flush;91 100 } vt100_t; 92 101 … … 94 103 95 104 extern vt100_t *vt100_create(void *, sysarg_t, sysarg_t, 96 vt100_ putuchar_t, vt100_control_puts_t, vt100_flush_t);105 vt100_cb_t *); 97 106 extern void vt100_destroy(vt100_t *); 98 107
Note:
See TracChangeset
for help on using the changeset viewer.
