From 0a4731ee473651c8c34876dc150db5f3643eccd5 Mon Sep 17 00:00:00 2001 From: Daniel Loffgren Date: Sun, 28 Feb 2016 09:13:41 +0000 Subject: [PATCH] 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 --- apple1/pia.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/apple1/pia.c b/apple1/pia.c index d793435..e0e709e 100644 --- a/apple1/pia.c +++ b/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++;