GFXTerm (Linux) r.2025.08 - problem with MMBasic in EDIT mode


Author Message
panky

Guru

Joined: 02/10/2012
Location: Australia
Posts: 1127
Posted: 04:12am 04 May 2026      

  panky said   .... analysing further, Barry is right on the money I think

Raw-Rx-grab-GFXTerm.pdf


Looking at the raw data from MMBasic, upon entering EDIT mode, MMB sends the following to the console
<ESC>[8;40;80t    ' unsure but think this sets terminal to 40 lines of 80 characters
                 ' Note: the manual says the default is 24 x 80 for MMB,
                 ' the same is the default for GFXTerm. Setting GFXTerm to 40 x 80
                 ' results in correct display.
                 ' Again, note that OPTION DISPLAY 24,80 in MMB gives the error
                 ' message  Error : Cannot change LCD console

<ESC>[?7l         ' reset autowrap mode
<ESC>[?1000h      ' enable VT200 mouse reporting
<ESC>7            ' save cursor and attributes
<ESC>[2J          ' erase full display
<ESC>[H           ' cursor to upper left corner
<ESC>[1;1H        ' move cursor to line 1, column 1
<ESC>[39;1H       ' move cursor to line 39, column 1
<ESC>[35m         ' foreground colour to magenta
<ESC>[4m          ' 80 spaces follows - underline them ie. draw a line
<ESC>[0m          ' normal ie. turn off underline

.... and so on but the issue appears to be that MMB defaults to 40 lines by 80 columns (where the manual states 24 x 80) whereas GFXTerm defaults to 24 x 80.
Changing GFXTerm to match the MMB 40 x 80 enables EDIT to work OK.  MMB does not appear to allow this setting to be chaged eg. back to 24 x 80

Perhaps the manual could indicate that MMB defaults to 40 x 80 not 24 x 80

Doug.