Re: [hatari-devel] Hatari debug mode |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: Hatari Development <hatari-devel@xxxxxxxxxxxxxxxxxxx>
- Subject: Re: [hatari-devel] Hatari debug mode
- From: Eero Tamminen <oak@xxxxxxxxxxxxxx>
- Date: Thu, 31 Jul 2025 12:16:20 +0300
- Cc: Christian Zietz <czietz@xxxxxxx>
- Dkim-filter: OpenDKIM Filter v2.11.0 smtp.dnamail.fi 5B9F32113E03
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=helsinkinet.fi; s=2025-03; t=1753953380; bh=oY+GfZkOqilJiUsunoPpyfh4a+/JmarQsljV3cnPzvw=; h=Date:Subject:To:References:From:Cc:In-Reply-To:From; b=KwVC4VPsA/TuhA34+in2Jo60fn51qauZSEsGkL54cN4FU+HxtDAcFwzWlIVJBl6Lo 6SvAbc7Lvovp+x6OiOVaobT3reoFJ2yQRhxk2E2sQC3FK+O6U2DqDYAs9A81TJcwaj JpBH9ruTsvsLVHiiLdsFRF5SqipsENloUMzcNivcBYD1WoL4IwwaGduVkSeprQEplm kp8YoSjrZM5FKHMhf583HhTdvCqMPIBksroQtmJwWdauwpCxQO0F9AaZ/fxeR/6GQ3 6LX+B3tPiOG0iFZcnDCm7Dq1IgvU9UO+qUPXHhwqRUGF77lzxF0t25+OI2nTF+4nyz jOYbdhIkAqkFw==
Hi,
On 31.7.2025 8.37, Christian Zietz wrote:
If started from a console, it will detach from the console it was
launched from, and there will be no console output at all. If you run it
with "hatari -W", it will always open a *separate* console window, not
using the existing one it was launched from.
And it works the same when Hatari is build as Windows GUI app (the
default) or as CLI app (what you do)?
I guess in general starting applications from console is nowadays really
rare in Windows, much more so than in Linux [1]. So opening a new
console window on Windows when needed is not a problem for most people.
However, there's the Hatari use-case of redirecting Hatari trace etc
output to a file. Will opening of a new console window interrupt that,
and completely loose rest of the output when the new window is closed at
Hatari exit?
---
[1] As to opening console automatically on Linux (or other Unix
variants), the problem is that Linux has no standard console
application, or way to open one.
Each desktop has its own console program, and that may even have changed
between major desktop versions. XTerm is not going to be installed on
Wayland desktops, and has otherwise crummy usability. And there does not
seem to be no standard (e.g. XDG) alias for invoking desktop-native console.
=> This functionality is going to be Windows-only.
(If there's some API to do similar on Mac, somebody could contribute
support for that though.)
- Eero
PS. Sometime in future, Hatari debugger shortcut could maybe invoke some
simple SDL debugger GUI (doable now that SDL supports multiple windows)
instead of the CLI debugger, to avoid it freezing the emulation when
there's no console.
(User should still be able to default to CLI one, because GUI one is not
going to have all the features & scriptability the CLI one has,
especially if it's going to be done in C/SDL.)