mirror of
https://github.com/RyuKojiro/apple1.git
synced 2024-12-27 20:29:31 +00:00
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:
parent
e6861adad1
commit
0a4731ee47
18
apple1/pia.c
18
apple1/pia.c
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user