diff options
Diffstat (limited to 'sys/include')
-rw-r--r-- | sys/include/dev/cons/cons.h | 1 | ||||
-rw-r--r-- | sys/include/sys/console.h | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/sys/include/dev/cons/cons.h b/sys/include/dev/cons/cons.h index c82c3c5..bc868b4 100644 --- a/sys/include/dev/cons/cons.h +++ b/sys/include/dev/cons/cons.h @@ -51,6 +51,7 @@ struct cons_screen { struct fbdev fbdev; struct ansi_state ansi_s; struct console_feat feat; /* Features */ + struct console_attr attr; /* Attributes */ struct proc *atproc; /* Attached proc */ struct mutex *atproc_lock; uint32_t fg; diff --git a/sys/include/sys/console.h b/sys/include/sys/console.h index c912d28..d0b89a8 100644 --- a/sys/include/sys/console.h +++ b/sys/include/sys/console.h @@ -43,4 +43,15 @@ struct console_feat { uint8_t show_curs : 1; }; +/* + * Console attributes + * + * @cursor_x: Cursor x position + * @cursor_y: Cursor y position + */ +struct console_attr { + uint32_t cursor_x; + uint32_t cursor_y; +}; + #endif /* !_SYS_CONSOLE_H_ */ |