frontend: line-ed: move platform-specific code to separate directory
This commit is contained in:
@@ -89,6 +89,11 @@ enum s_tty_colour_mode {
|
||||
TTY_COLOUR_TRUE,
|
||||
};
|
||||
|
||||
enum s_tty_position_base {
|
||||
TTY_POS_START,
|
||||
TTY_POS_CURSOR,
|
||||
};
|
||||
|
||||
enum s_tty_attrib {
|
||||
TTY_ATTRIB_NORMAL = 0x00u,
|
||||
TTY_ATTRIB_BOLD = 0x01u,
|
||||
@@ -137,4 +142,9 @@ extern void s_tty_set_vmode(struct s_tty *tty, const struct s_tty_vmode *vmode);
|
||||
|
||||
extern s_keycode s_tty_read_key(struct s_tty *tty);
|
||||
|
||||
extern void s_tty_move_cursor_x(
|
||||
struct s_tty *tty, enum s_tty_position_base base, int pos);
|
||||
extern void s_tty_move_cursor_y(
|
||||
struct s_tty *tty, enum s_tty_position_base base, int pos);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user