From: "Peter Moylan" Received: from [192.168.100.201] (HELO mail.2rosenthals.com) by 2rosenthals.com (CommuniGate Pro SMTP 5.4.10) with ESMTP id 11340334 for ecs-isp@2rosenthals.com; Wed, 11 Dec 2024 05:21:30 -0500 Received: from secmgr-va.randr ([192.168.200.201]:38863 helo=mail2.2rosenthals.com) by mail.2rosenthals.com with esmtp (Exim 4.97.1) (envelope-from ) id 1tLJqO-000000000yD-1PCF for ecs-isp@2rosenthals.com; Wed, 11 Dec 2024 05:21:25 -0500 Received: from pmoylan.org ([144.6.37.71]:64202 helo=mail.pmoylan.org) by mail2.2rosenthals.com with esmtp (Exim 4.97.1) (envelope-from ) id 1tLJqL-0000000022w-1I6M for ecs-isp@2rosenthals.com; Wed, 11 Dec 2024 05:21:22 -0500 X-SASI-Hits: BODY_ENDS_IN_URL 0.000000, BODY_SIZE_3000_3999 0.000000, BODY_SIZE_5000_LESS 0.000000, BODY_SIZE_7000_LESS 0.000000, CTE_8BIT 0.000000, DKIM_ALIGNS 0.000000, DKIM_SIGNATURE 0.000000, HTML_00_01 0.050000, HTML_00_10 0.050000, IN_REP_TO 0.000000, KNOWN_MSGID 0.000000, LEGITIMATE_SIGNS 0.000000, MSG_THREAD 0.000000, NO_URI_HTTPS 0.000000, REFERENCES 0.000000, SENDER_NO_AUTH 0.000000, SINGLE_URI_IN_BODY 0.000000, SUSP_DH_NEG 0.000000, TO_IN_SUBJECT 0.500000, USER_AGENT 0.000000, __ANY_URI 0.000000, __BODY_NO_MAILTO 0.000000, __BOUNCE_CHALLENGE_SUBJ 0.000000, __BOUNCE_NDR_SUBJ_EXEMPT 0.000000, __CP_URI_IN_BODY 0.000000, __CRYPTO_ADDRESS_OBFU 0.000000, __CT 0.000000, __CTE 0.000000, __CT_TEXT_PLAIN 0.000000, __DKIM_ALIGNS_1 0.000000, __DKIM_ALIGNS_2 0.000000, __DQ_NEG_DOMAIN 0.000000, __DQ_NEG_HEUR 0.000000, __DQ_NEG_IP 0.000000, __FORWARDED_MSG 0.000000, __FUR_HEADER 0.000000, __HAS_FROM 0.000000, __HAS_MSGID 0.000000, __HAS_REFERENCES 0.000000, __HEADER_ORDER_FROM 0.000000, __HIGHBIT_ASCII_MIX 0.000000, __IN_REP_TO 0.000000, __MAIL_CHAIN 0.000000, __MIME_BOUND_CHARSET 0.000000, __MIME_TEXT_ONLY 0.000000, __MIME_TEXT_P 0.000000, __MIME_TEXT_P1 0.000000, __MIME_VERSION 0.000000, __MOZILLA_MSGID 0.000000, __MOZILLA_USER_AGENT 0.000000, __NO_HTML_TAG_RAW 0.000000, __RCVD_FROM_DOMAIN 0.000000, __REFERENCES 0.000000, __SANE_MSGID 0.000000, __SCAN_D_NEG 0.000000, __SCAN_D_NEG2 0.000000, __SCAN_D_NEG_HEUR 0.000000, __SCAN_D_NEG_HEUR2 0.000000, __SINGLE_URI_TEXT 0.000000, __SUBJ_ALPHA_NEGATE 0.000000, __SUBJ_REPLY 0.000000, __TO_IN_SUBJECT 0.000000, __TO_MALFORMED_2 0.000000, __TO_NAME 0.000000, __TO_NAME_DIFF_FROM_ACC 0.000000, __TO_REAL_NAMES 0.000000, __URI_IN_BODY 0.000000, __URI_MAILTO 0.000000, __URI_NOT_IMG 0.000000, __URI_NO_PATH 0.000000, __URI_NS 0.000000, __URI_WITHOUT_PATH 0.000000, __USER_AGENT 0.000000 X-SASI-Probability: 9% X-SASI-RCODE: 200 X-SASI-Version: Antispam-Engine: 5.1.4, AntispamData: 2024.12.11.93646 X-SASI-Hits: BODY_ENDS_IN_URL 0.000000, BODY_SIZE_3000_3999 0.000000, BODY_SIZE_5000_LESS 0.000000, BODY_SIZE_7000_LESS 0.000000, CTE_8BIT 0.000000, DKIM_ALIGNS 0.000000, DKIM_SIGNATURE 0.000000, HTML_00_01 0.050000, HTML_00_10 0.050000, IN_REP_TO 0.000000, KNOWN_MSGID 0.000000, LEGITIMATE_SIGNS 0.000000, MSG_THREAD 0.000000, NO_URI_HTTPS 0.000000, REFERENCES 0.000000, SENDER_NO_AUTH 0.000000, SINGLE_URI_IN_BODY 0.000000, SUSP_DH_NEG 0.000000, TO_IN_SUBJECT 0.500000, USER_AGENT 0.000000, __ANY_URI 0.000000, __BODY_NO_MAILTO 0.000000, __BOUNCE_CHALLENGE_SUBJ 0.000000, __BOUNCE_NDR_SUBJ_EXEMPT 0.000000, __CP_URI_IN_BODY 0.000000, __CRYPTO_ADDRESS_OBFU 0.000000, __CT 0.000000, __CTE 0.000000, __CT_TEXT_PLAIN 0.000000, __DKIM_ALIGNS_1 0.000000, __DKIM_ALIGNS_2 0.000000, __DQ_NEG_DOMAIN 0.000000, __DQ_NEG_HEUR 0.000000, __DQ_NEG_IP 0.000000, __FORWARDED_MSG 0.000000, __FUR_HEADER 0.000000, __HAS_FROM 0.000000, __HAS_MSGID 0.000000, __HAS_REFERENCES 0.000000, __HEADER_ORDER_FROM 0.000000, __HIGHBIT_ASCII_MIX 0.000000, __IN_REP_TO 0.000000, __MAIL_CHAIN 0.000000, __MIME_BOUND_CHARSET 0.000000, __MIME_TEXT_ONLY 0.000000, __MIME_TEXT_P 0.000000, __MIME_TEXT_P1 0.000000, __MIME_VERSION 0.000000, __MOZILLA_MSGID 0.000000, __MOZILLA_USER_AGENT 0.000000, __NO_HTML_TAG_RAW 0.000000, __RCVD_FROM_DOMAIN 0.000000, __REFERENCES 0.000000, __SANE_MSGID 0.000000, __SCAN_D_NEG 0.000000, __SCAN_D_NEG2 0.000000, __SCAN_D_NEG_HEUR 0.000000, __SCAN_D_NEG_HEUR2 0.000000, __SINGLE_URI_TEXT 0.000000, __SUBJ_ALPHA_NEGATE 0.000000, __SUBJ_REPLY 0.000000, __TO_IN_SUBJECT 0.000000, __TO_MALFORMED_2 0.000000, __TO_NAME 0.000000, __TO_NAME_DIFF_FROM_ACC 0.000000, __TO_REAL_NAMES 0.000000, __URI_IN_BODY 0.000000, __URI_MAILTO 0.000000, __URI_NOT_IMG 0.000000, __URI_NO_PATH 0.000000, __URI_NS 0.000000, __URI_WITHOUT_PATH 0.000000, __USER_AGENT 0.000000 X-SASI-Probability: 9% X-SASI-RCODE: 200 X-SASI-Version: Antispam-Engine: 5.1.4, AntispamData: 2024.12.11.93646 DKIM-Signature: v=1; q=dns/txt; a=rsa-sha256; c=relaxed/relaxed; s=default; d=pmoylan.org; bh=Z14Bi832S5EY134ZTDSsVnpipUa2nn17xj84BS3ZCLA=; h=From:To:Date:Message-ID; b=gDJaW0hLpck3yFcr7+SwMlm3Fv2K+3Awy55H79awIXGEN9iFh8cKkUAn9fNtljkjX+SX7 0ydJvQGv0sDAGnNLVvh4jrXDnlVOCdLVw0EFmgi+YTO+2XFLM+DWRm7H7AsFuDUg8yjoK3Z xYjmyPTOD1aQIr5yvDoweG5+TgkQV3A= Received: from [192.168.20.3] (peter.pmoylan.org [192.168.20.3]) by mail.pmoylan.org (Weasel v3.0) for ; Wed, 11 Dec 2024 21:21:18 +1100 Subject: Re: [eCS-ISP] VIO Font Size (Was: Re: Getting started with Let's Encrypt) To: eCS ISP Mailing List References: Message-ID: <6759679F.9010300@pmoylan.org> Date: Wed, 11 Dec 2024 21:21:19 +1100 User-Agent: Mozilla/5.0 (OS/2; Warp 4.5; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit On 11/12/24 11:46, Alfredo Fernández Díaz wrote: > On 2024/12/10 11:42, Peter Moylan wrote: >> On 09/12/24 23:10, Alfredo Fern�ndez D�az wrote: >>> On 2024/12/09 01:36, Peter Moylan wrote: >>>> On 09/12/24 00:20, Alfredo Fern�ndez D�az wrote: >>>>> On 2024/12/08 09:56, Peter Moylan wrote: >>>>>> On 08/12/24 15:57, Steven Levine wrote: >>>>>>> In , on 12/08/24 at 02:11 PM, >>>>>>> "Peter Moylan" said: >>>>>> >>>>>>>> That made me rediscover a flaw in the design: changing the >>>>>>>> font size changes it for all instances of the shell (and >>>>>>>> also all instances of 4OS2) rather than for just one >>>>>>>> application. >>>>>>> >>> [...] >>>>>> >>>>>> I should look into where the font size is saved to. It might >>>>>> be saved in the extended attributes of the shell. If so, there >>>>>> could be a way to add the relevant information to the extended >>>>>> attributes of one program object, without affecting the global >>>>>> command shell font. >>>>> >>>>> It is saved in the USER INI file, as a two-byte character value >>>>> (first byte is VIO cell size cols, second is rows) of the >>>>> 'Shield' application. The name of the key under which this value >>>>> is stored is language-dependent, and it starts with or at least >>>>> has a tilde (~) character in it. I just set it on a VM and it >>>>> seems to be '~Font Size...' in English ArcaOS. >> >> That's the first time I've seen a key that ends with a sequence of dots. >> Very strange. >> > > Not really, there is a reason for everything. Apparently all code > dealing with VIO windows lives in PMVIOP.DLL, and the function that > handles the VIO default font size reads string #153 from that DLL to use > it as the key name. The string in question corresponds to the menu item > that invokes (surprise!) the dialog that lets you adjust VIO font size. > Naturally, the string is NLS-dependent, and complying with CUA, it ends > in '...' to signal that it will invoke a dialog, rather than execute > some action right away. Interesting stuff. I wouldn't have guessed any of that. In the end, I implemented a very simple solution. Here's the complete script. /* Wrapper to set font size and then run accounts. */ CALL RxFuncAdd SysLoadFuncs, rexxutil, sysloadfuncs CALL SysLoadFuncs oldsize = SysIni("USER", "Shield", "~Font Size...") rows = 22 cols = 12 newsize = D2C(cols)||D2C(rows) result = SysINI( "USER", "Shield", "~Font Size...", newsize) 'start /C /WIN D:\accounts\accounts.exe' result = SysINI( "USER", "Shield", "~Font Size...", oldsize) I could have done something fancier if I put more time into it, but for now I have higher-priority problems to look at. > I see. After some digging at the new Hobbes archive, a little GPL > utility called 'Console' turned up, that does just that: it will adjust > the font size for DOS or OS/2 VIO sessions (and much more!) > programmatically, and leave the default setting entirely alone. I knew > this must be possible --after all you can do that precisely via the VIO > window system menu, pushing the 'Change' button instead of 'Save'-- > although I doubt that it can be done directly from REXX or something > similar. I seem to recall some old WPS enhancer also included another > command-line utility that could do it, more or less, but I forget which > one -- X-it, Nice, NPS...? Thanks. I've saved that information to look at later when I have more time. -- Peter Moylan peter@pmoylan.org http://www.pmoylan.org