Had to disable color temporarily, but now the console video uses only waddch's, and so is restorable

git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@35 64f78de7-aa59-e511-a0e8-0002a5492df0
This commit is contained in:
Daniel Loffgren 2015-09-18 08:35:38 +00:00
parent 1660b3a08f
commit fb14c09db3
1 changed files with 6 additions and 5 deletions

View File

@ -52,7 +52,7 @@ void videoWriteCharCallback(struct _v6502_memory *memory, uint16_t offset, uint8
if (value) {
char c = asciiCharFromA1Char(value);
if (c == '\r') {
fprintf(stdout, "\n");
waddch(context->screen, '\n');
}
if (c == 0x7f) {
int y, x;
@ -64,16 +64,17 @@ void videoWriteCharCallback(struct _v6502_memory *memory, uint16_t offset, uint8
refresh();
}
else {
fprintf(stdout, ANSI_COLOR_BRIGHT_GREEN "%c" ANSI_COLOR_RESET, c);
// printf(ANSI_COLOR_BRIGHT_GREEN);
waddch(context->screen, c);
// printf(ANSI_COLOR_RESET);
}
//memory->bytes[offset] = value;
fflush(stdout);
}
}
void videoWriteNewlineCallback(struct _v6502_memory *memory, uint16_t offset, uint8_t value, a1pia *context) {
fprintf(stdout, "\r\n");
fflush(stdout);
// fprintf(stdout, "\r\n");
// fflush(stdout);
}
uint8_t keyboardReadReadyCallback(struct _v6502_memory *memory, uint16_t offset, int trap, a1pia *context) {