summaryrefslogtreecommitdiff
path: root/src/video/ncurses.c
diff options
context:
space:
mode:
authoralekseiplusplus <alekseijeaves@protonmail.com>2023-11-28 02:51:33 +1100
committeralekseiplusplus <alekseijeaves@protonmail.com>2023-11-28 02:51:33 +1100
commit2ded6baaab3946e461a7cf0b39618b31e5806c89 (patch)
treea30e4069d9c9e98e16651eadb0875d48ecc7c91e /src/video/ncurses.c
parentd24ee5f20483aee9acbec9deb0dcc833d78cae49 (diff)
days end
Diffstat (limited to 'src/video/ncurses.c')
-rw-r--r--src/video/ncurses.c41
1 files changed, 40 insertions, 1 deletions
diff --git a/src/video/ncurses.c b/src/video/ncurses.c
index a9221e1..05653e2 100644
--- a/src/video/ncurses.c
+++ b/src/video/ncurses.c
@@ -2,4 +2,43 @@
// Implements interface.h
// Provides an in-terminal interface to the emulator.
-#include"interface.h" \ No newline at end of file
+#include"interface.h"
+#include"signetics.c"
+#include<ncurses.h>
+
+
+int TermX = 0;
+int TermY = 0;
+
+void TerminalInit()
+{
+ initscr();
+ cbreak();
+ noecho();
+
+ TerminalShiftRegister = (byte*)malloc(960);
+ TerminalShiftRegisterOffset = 0;
+}
+
+void TerminalClose()
+{
+ free(TerminalShiftRegister);
+ endwin();
+}
+
+void TerminalInput()
+{
+ if (TermX >= 40) {
+ TermX = 0;
+ TermY++;
+ }
+
+ if (TermY >= 24) {
+
+ }
+}
+
+void TerminalPrompt()
+{
+ addch('@' | A_BLINK);
+} \ No newline at end of file