From 5372fc3bfdec1485214cb09f2b519223937d8a24 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Tue, 8 Apr 2025 10:47:10 -0400 Subject: tty => term --- kernel/include/comus/drivers/term.h | 37 +++++++++++++++++++++++++++++++++++++ kernel/include/comus/drivers/tty.h | 22 ---------------------- 2 files changed, 37 insertions(+), 22 deletions(-) create mode 100644 kernel/include/comus/drivers/term.h delete mode 100644 kernel/include/comus/drivers/tty.h (limited to 'kernel/include') diff --git a/kernel/include/comus/drivers/term.h b/kernel/include/comus/drivers/term.h new file mode 100644 index 0000000..ad55bfd --- /dev/null +++ b/kernel/include/comus/drivers/term.h @@ -0,0 +1,37 @@ +/** + * @file tty.h + * + * @author Freya Murphy + * + * Terminal output + */ + +#ifndef TERM_H_ +#define TERM_H_ + +/** + * Output a character to the terminal + */ +void term_out(char c); + +/** + * Output a string to the terminal + */ +void term_out_str(const char *str); + +/** + * Clear all lines on the terminal + */ +void term_clear(void); + +/** + * Clear a specifc line on the terminal terminal + */ +void term_clear_line(int line); + +/** + * Scroll terminal + */ +void term_scroll(int lines); + +#endif /* tty.h */ diff --git a/kernel/include/comus/drivers/tty.h b/kernel/include/comus/drivers/tty.h deleted file mode 100644 index 55aec64..0000000 --- a/kernel/include/comus/drivers/tty.h +++ /dev/null @@ -1,22 +0,0 @@ -/** - * @file tty.h - * - * @author Freya Murphy - * - * Terminal output - */ - -#ifndef TTY_H_ -#define TTY_H_ - -/** - * Output a character to the terminal - */ -void tty_out(char c); - -/** - * Output a string to the terminal - */ -void tty_out_str(const char *str); - -#endif /* tty.h */ -- cgit v1.2.3-freya