diff options
Diffstat (limited to 'src/video/ncurses.c')
-rw-r--r-- | src/video/ncurses.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/video/ncurses.c b/src/video/ncurses.c index 380c57a..2e3e519 100644 --- a/src/video/ncurses.c +++ b/src/video/ncurses.c @@ -2,9 +2,10 @@ // Implements interface.h // Provides an in-terminal interface to the emulator. +#include<ncurses.h> #include"interface.h" #include"signetics.c" -#include<ncurses.h> +#include"../apple.h" int TermX = 0; @@ -56,7 +57,6 @@ void TerminalInit() - void TerminalClose() { free(TerminalShiftRegister); @@ -64,10 +64,13 @@ void TerminalClose() endwin(); } + + // Takes an an Apple I ASCII character. void TerminalInput(char n) { - mvwaddch(AppleWindow, TermY,TermX,n); + mvwaddch(AppleWindow, TermY, TermX, ' '); + mvwaddch(AppleWindow, TermY, TermX, n); *TerminalShiftRegisterPosition = n; TerminalShiftRegisterPosition++; @@ -77,9 +80,9 @@ void TerminalInput(char n) TermX++; - if (n == KEY_ENTER) { - TermY++; - } + //if (n == KEY_ENTER) { + // TermY++; + //} if (TermX >= 40) { TermX = 0; @@ -100,7 +103,7 @@ void TerminalInput(char n) if (offset >= (TerminalShiftRegister + 960)) offset -= 960; - mvwaddch(AppleWindow, i, j, *(offset)); + mvwaddch(AppleWindow, i, j, ToAscii(*(offset))); offset++; }} |