TSE: The changed behavior regarding e.g. line drawing might be explained by the fact that Microsoft before used Code page 437 and lately it has changed to Code Page 850
Hello,
The goal is to get Code Page 437 when
testing it using
menu > 'Util' > 'ASCII chart'
then scrolling down to the last characters e.g. 250, 251, ..., 255
and checking if those characters are from a Code Page 437
instead of the default Code Page 850.
The font used is always Terminal, fontsize 9 and bold.
TSE for Microsoft Windows version 4.50.6.
The intended method is trying to brute force TSE to be in the Code Page 437 state
(instead of the default Code Page 850 state)
1. One can get the code page by typing in cmd.exe
chcp
that will typically show here
850
(thus code page 850 is active)
2. One can set a code page, e.g. to 437
by typing
chcp 437
3. So one idea was to force TSE to use code page 437
something like on the cmd.exe command line:
chcp 437 & g32.exe
That first sets the code page to 437, then calls TSE g32.exe.
4. But that did not work, when checking the 'ASCII chart'.
5. Then tried from within TSE to go to the shell using <F9> and
then typing on the command line
chcp 437
and then exit.
But that does not work because Shell() or Dos() is a separate process,
so has not influence on the parent process (TSE g32.exe).
6. Then I used a DLL to set the code page from within TSE
a. Create foobar.s
b. Insert the text
---
dll "<kernel32.dll>"
integer proc SetConsoleOutputCP( integer wCodePageID ) : "SetConsoleOutputCP"
integer proc SetConsoleCP( integer wCodePageID ) : "SetConsoleCP"
end
PROC Main()
SetConsoleOutputCP( 437 )
SetConsoleCP( 437 )
Warn( "Code page set to 437" )
END
---
Compile it and run it, it will show that code page 437.
7. But that did not work to change the code page to 437
8. Then I created a tsestart.s, copied the DLL text from
above in it, saved it in the same directory as g32.exe
and compiled it, then started TSE.
That will automatically run tsestart.mac, by design.
It showed 'Code page set to 437' as expected.
But inside TSE checking the menu > 'Util' > 'ASCII chart'
showed still the characters from Code Page 850
(and not from wanted 437 thus).
Any suggestions?
Thanks
with friendl greetings
Knud van Eeden