summaryrefslogtreecommitdiff
path: root/src/video/ncurses.c
diff options
context:
space:
mode:
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