TED Editor

Pagina 2/2
1 |

Van NYYRIKKI

Enlighted (5357)

afbeelding van NYYRIKKI

02-01-2019, 15:51

Guys... Ted will always exit to the mode & colors you have defined as your system default.

To make TED exit to WIDTH 80 mode, type:
BASIC
SCREEN 0
WIDTH 80
SET SCREEN

Van Wild_Penguin

Hero (542)

afbeelding van Wild_Penguin

02-01-2019, 16:30

Ah, thanks Nyyrikki!

I had a hunch there is some way ... sadly, most of my MSXes don't have a functional battery (anymore), and don't remember the settings. Of course, that can be worked around with some nice autoexec.bat ...

Van rope_nl

Supporter (7)

afbeelding van rope_nl

02-01-2019, 16:45

Hmmm, okay, will try, but not a nice solution.
MSX-DOS programs should not have to depend on something like this (my opinion)
Thank you for the information Nyyrikki, where did you get that nice info ?

Van NYYRIKKI

Enlighted (5357)

afbeelding van NYYRIKKI

03-01-2019, 22:02

rope_nl wrote:

Hmmm, okay, will try, but not a nice solution.
MSX-DOS programs should not have to depend on something like this (my opinion)

Indeed... I think it is better to return to the mode from where the program was launched from... That is what programs usually do.

Quote:

Thank you for the information Nyyrikki, where did you get that nice info ?

I've seen this happening some time in the past when using emulator... It was not hard to figure out as I did know for sure the very same version from the very same disk image had been exiting correctly before... Usually I always write:
SCREEN 0,,0:KEY OFF:WIDTH 80:COLOR 15,0,0:SET SCREEN
... when I start using new configuration, but this time I had skipped that step for some reason.

Van Manuel

Ascended (15682)

afbeelding van Manuel

03-01-2019, 23:15

OTOH: user programs default settings to be "this and that". Program restores settings to "this and that". Wasn't that what the user wanted? Smile Nah, he indeed probably wanted to return to the settings he had before launching TED. But still, it's not all that bad to return to the defaults that were programmed by the user himself. Unless you don't have the battery anymore indeed...

Van Grauw

Ascended (8368)

afbeelding van Grauw

03-01-2019, 23:24

If you switch to screen 2, then you can switch back with the TOTEXT BIOS call, and it will pick whatever text mode (screen 0 / 1) you were in before, and at whatever width you were using.

However for a text-mode application like TED, you can’t switch back as conveniently (assuming you use the BIOS for selecting screen modes), you need to store and restore the system variables with the original settings manually I guess.

Still I don’t think using the clock chip settings is the most elegant way. But either way, it also doesn’t seem like a big deal?

Pagina 2/2
1 |