We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3140cad commit 0778769Copy full SHA for 0778769
src/include/kernel/tty.h
@@ -31,3 +31,4 @@ void ttyInit(KernelBootInfo *);
31
void ttyPutc(char);
32
void ttyPuts(const char *);
33
void ttyRemapFramebuffer();
34
+void getTtyStatus(KTTY *);
src/tty/tty.c
@@ -236,3 +236,12 @@ void ttyPuts(const char *s) {
236
s++;
237
}
238
239
+
240
+/* getTtyStatus(): returns the status of the framebuffer and emulated terminal
241
+ * params: b - buffer to store the status
242
+ * returns: nothing
243
+ */
244
245
+void getTtyStatus(KTTY *b) {
246
+ memcpy(b, &ktty, sizeof(KTTY));
247
+}
0 commit comments