mirror of
https://github.com/autc04/Retro68.git
synced 2026-11-17 12:34:04 +00:00
parseArguments() split its argument string with a std::istringstream. That single use pulls in libstdc++'s iostreams and locale support, with all the standard facets (money_get, time_get, their wchar_t variants...) and their exception tables: a plain "hello world" console application grows from about 210K to about 1.2M. That is more than the 1M partition the default SIZE resource in Retro68APPL.r asks for. Under System 7, loading a code segment then fails with memFullErr, the assert in Retro68LoadSegment calls DebugStr, and without a debugger installed the application stops at launch with an "unimplemented trap" system error. System 6 without MultiFinder ignores the SIZE resource, which hides the problem there. Split the string on ';' with std::string::find instead. The result is the same: empty fields still count as 1, and there are at least two numbers.
Console This library provides a simple console library, offering a limited support for ANSI control sequences. Here is a list of the supported sequences and their meaning: ESC[0m Reset all text style ESC[1m Bold font (*) ESC[3m Italic font ESC[4m Underline font ESC]0;NewnameBEL Set the window title to "Newname" (**) NOTES: (*) Obtained with bold + condense style together, so that the character grid remains regular (this way, the width of bold characters remains the same as regular ones). (**) BEL is ASCII character 7.