From 8b951d77aedd04cc2aaeaa42ebcccf70337ee8a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Izaguirre?= Date: Mon, 5 Oct 2026 17:09:17 +0200 Subject: [PATCH] Read the text of a Videx card only while it is the one shown --- inspect.go | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/inspect.go b/inspect.go index 9d303ab4..bd07eb00 100644 --- a/inspect.go +++ b/inspect.go @@ -12,14 +12,16 @@ that calls RunCycles, or while the machine is not running. */ // ScreenText returns the text shown on the screen, in 40 or 80 columns or on -// a Videx card in slot 3, with a line per row. Inverse and flashing -// characters are returned as the normal ones. +// a Videx card in slot 3 when it is the one shown, with a line per row. +// Inverse and flashing characters are returned as the normal ones. func (a *Apple2) ScreenText() string { - switch videx := a.cards[3].(type) { - case *CardVidexVideoterm: - return videx.getText() - case *CardVidexUltraterm: - return videx.getText() + if a.video.GetCurrentVideoMode()&screen.VideoBaseMask == screen.VideoVidex { + switch videx := a.cards[3].(type) { + case *CardVidexVideoterm: + return videx.getText() + case *CardVidexUltraterm: + return videx.getText() + } } is80Columns := a.io.isSoftSwitchActive(ioFlag80Col)