summaryrefslogtreecommitdiff
path: root/kern/inc/console.h
diff options
context:
space:
mode:
authorHanjie Wu <hanjiew@andrew.cmu.edu>2023-04-28 21:14:37 -0400
committerHanjie Wu <hanjiew@andrew.cmu.edu>2023-04-28 21:14:37 -0400
commit119b5e6fde37c53a5037a6ba959ba60c882bd6d0 (patch)
treea41be842bfc966befb80324cc405414b35cf91d2 /kern/inc/console.h
parentff90341c64565ac7d8034d2f8cf460532a5b51fd (diff)
commentHEADmaster
Diffstat (limited to 'kern/inc/console.h')
-rw-r--r--kern/inc/console.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/kern/inc/console.h b/kern/inc/console.h
index dbfdbb0..050b04b 100644
--- a/kern/inc/console.h
+++ b/kern/inc/console.h
@@ -9,6 +9,21 @@
#ifndef _CONSOLE_H
#define _CONSOLE_H
+/** @brief Prints character ch at the current location
+ * of the cursor.
+ *
+ * If the character is a newline ('\n'), the cursor is
+ * be moved to the beginning of the next line (scrolling if necessary). If
+ * the character is a carriage return ('\r'), the cursor
+ * is immediately reset to the beginning of the current
+ * line, causing any future output to overwrite any existing
+ * output on the line. If backsapce ('\b') is encountered,
+ * the previous character is erased. See the main console.c description
+ * for more backspace behavior.
+ *
+ * @param ch the character to print
+ * @return The input character
+ */
int putbyte(char ch);
#endif