From 2ded6baaab3946e461a7cf0b39618b31e5806c89 Mon Sep 17 00:00:00 2001 From: alekseiplusplus Date: Tue, 28 Nov 2023 02:51:33 +1100 Subject: days end --- src/video/ncurses.c | 41 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) (limited to 'src/video/ncurses.c') 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 + + +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 -- cgit v1.2.3