summaryrefslogtreecommitdiff
path: root/src/video
diff options
context:
space:
mode:
Diffstat (limited to 'src/video')
-rw-r--r--src/video/interface.h15
-rw-r--r--src/video/ncurses.c17
2 files changed, 14 insertions, 18 deletions
diff --git a/src/video/interface.h b/src/video/interface.h
index dc074b2..16cc965 100644
--- a/src/video/interface.h
+++ b/src/video/interface.h
@@ -6,17 +6,16 @@
#include "../cpu/core.h"
#include <stdlib.h>
-// Common procedure for taking in user input.
-byte UserInput();
-// Common way to print processor information.
-void PrintInfo();
-
-// Initialization procedure for the terminal
+// Initialize the video system.
void DisplayInit();
-// Exit procedure for the terminal.
+// Shut down the video system.
void DisplayClose();
-// Deliver an Apple ASCII character to the terminal.
+// Display a character on the screen.
void DisplayInput(byte n);
+
+
+// Print information on the video system.
+void PrintInfo();
diff --git a/src/video/ncurses.c b/src/video/ncurses.c
index e9be9b2..3b22231 100644
--- a/src/video/ncurses.c
+++ b/src/video/ncurses.c
@@ -8,17 +8,14 @@
#include"../cpu/6502.h"
-int TermX = 0;
-int TermY = 0;
+int TermX = 0;
+int TermY = 0;
WINDOW *AppleWindow;
-
byte* VRAM;
-
-int vPosition = 0;
-
-int vOffset = 0;
+int vPosition = 0;
+int vOffset = 0;
void PrintInfo()
@@ -69,11 +66,11 @@ void DisplayInit()
mvaddch(i, 0, ' ');
mvaddch(i, 41, ' ');
}
- mvprintw(25, 0, " ~ ");
- mvprintw(26, 0, " Alekseis Apple I ");
- mvprintw(27, 0, " ");
+ mvprintw(25, 0, " ");
attroff(A_REVERSE);
+
+
// Create seperate Apple screen window.
AppleWindow = newwin(24, 40, 1, 1);