Changeset 7eaeec1 in mainline for uspace/srv/hid/output/proto/vt100.h
- Timestamp:
- 2012-08-20T21:27:38Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6a97f2e
- Parents:
- f3a37e28 (diff), dd13349 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/output/proto/vt100.h
rf3a37e28 r7eaeec1 30 30 */ 31 31 32 #ifndef FB_PROTO_VT100_H_33 #define FB_PROTO_VT100_H_32 #ifndef OUTPUT_PROTO_VT100_H_ 33 #define OUTPUT_PROTO_VT100_H_ 34 34 35 35 #include <sys/types.h> 36 #include < screenbuffer.h>36 #include <io/charfield.h> 37 37 38 38 typedef void (* vt100_putchar_t)(wchar_t ch); 39 39 typedef void (* vt100_control_puts_t)(const char *str); 40 40 41 /** Forward declaration */ 42 struct vt100_state; 43 typedef struct vt100_state vt100_state_t; 41 typedef struct { 42 sysarg_t cols; 43 sysarg_t rows; 44 45 sysarg_t cur_col; 46 sysarg_t cur_row; 47 char_attrs_t cur_attrs; 48 49 vt100_putchar_t putchar; 50 vt100_control_puts_t control_puts; 51 } vt100_state_t; 44 52 45 53 extern vt100_state_t *vt100_state_create(sysarg_t, sysarg_t, vt100_putchar_t, 46 54 vt100_control_puts_t); 47 extern void vt100_get_resolution(vt100_state_t *, sysarg_t *, sysarg_t *); 55 extern void vt100_state_destroy(vt100_state_t *); 56 48 57 extern int vt100_yield(vt100_state_t *); 49 58 extern int vt100_claim(vt100_state_t *); 59 extern void vt100_get_dimensions(vt100_state_t *, sysarg_t *, sysarg_t *); 50 60 61 extern void vt100_goto(vt100_state_t *, sysarg_t, sysarg_t); 62 extern void vt100_set_attr(vt100_state_t *, char_attrs_t); 63 extern void vt100_cursor_visibility(vt100_state_t *, bool); 51 64 extern void vt100_putchar(vt100_state_t *, wchar_t); 52 53 extern void vt100_set_attr(vt100_state_t *, char_attrs_t);54 extern void vt100_goto(vt100_state_t *, sysarg_t, sysarg_t);55 extern void vt100_cursor_visibility(vt100_state_t *, bool);56 65 57 66 #endif
Note:
See TracChangeset
for help on using the changeset viewer.