Added a runaway indicator to the upper right-hand corner of the video output

git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@90 64f78de7-aa59-e511-a0e8-0002a5492df0
This commit is contained in:
Daniel Loffgren 2016-02-28 09:13:41 +00:00
parent e6861adad1
commit 0a4731ee47

View File

@ -131,10 +131,28 @@ uint8_t keyboardReadReadyCallback(struct _v6502_memory *memory, uint16_t offset,
fflush(stdout);
crmode();
}
else {
int x, y;
getyx(context->screen, y, x);
wmove(context->screen, 0, getmaxx(context->screen) - 1);
attroff(A_REVERSE);
wprintw(context->screen, " ");
wmove(context->screen, y, x);
}
int c = getch();
if (context->suspended) {
printf("%c\r\n", c);
}
else {
int x, y;
getyx(context->screen, y, x);
wmove(context->screen, 0, getmaxx(context->screen) - 1);
attron(A_REVERSE);
wprintw(context->screen, "!");
attroff(A_REVERSE);
wmove(context->screen, y, x);
}
if (c == '`') {
context->signalled++;