Startup window size (Last Session) column size restricition of 255 columns?

73 views
Skip to first unread message

David H.

unread,
May 31, 2024, 2:05:45 PMMay 31
to SemWare TSE Pro text editor
 New here so please be gentle :-)

I have noticed that if I resize my window to  > 255 columns, then quit and restart TSE, it opens up with just 80 columns. This would lead me to assume the stored off size is a byte?, is that correct and is there anyway to fix/work around this, so >255 columns can be handled correctly?

TIA   

S.E. Mitchell

unread,
May 31, 2024, 4:21:51 PMMay 31
to sem...@googlegroups.com
>> New here so please be gentle :-)
We'll try, but this is a rough bunch. Mostly old curmudgeons :)

I just tried this: I made my window 310 columns, quit, and started
back up using the "-r" switch. And it came right back to 310 columns.
Note: I have "Save State on Exit" turned on.

What version of TSE are you using, and what do you have set to make it
restore the window size?
--
> --
>
> ---
> You received this message because you are subscribed to the Google Groups "SemWare TSE Pro text editor" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to semware+u...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/semware/dd0a39ad-ee83-41e5-a571-be08d921aee7n%40googlegroups.com.

William W. Viergever

unread,
May 31, 2024, 6:02:42 PMMay 31
to sem...@googlegroups.com
I always love situations where I can use the word curmudgeon :-)


--------------------------------------------------------------
William W. Viergever
Viergever & Associates
Health Data Analysis / Systems Design & Development
3607 La Habra Way 
Sacramento, CA 95864
wil...@viergever.net
www.viergever.net
 (916) 715-1768
--------------------------------------------------------------

On May 31, 2024, at 1:22 PM, S.E. Mitchell <sammy.m...@gmail.com> wrote:


New here so please be gentle :-)
We'll try, but this is a rough bunch.  Mostly old curmudgeons :)

I just tried this: I made my window 310 columns, quit, and started
back up using the "-r" switch.  And it came right back to 310 columns.
Note: I have "Save State on Exit" turned on.

What version of TSE are you using, and what do you have set to make it
restore the window size?
--

On Fri, May 31, 2024 at 2:05 PM David H. <david....@gmail.com> wrote:

New here so please be gentle :-)

I have noticed that if I resize my window to  > 255 columns, then quit and restart TSE, it opens up with just 80 columns. This would lead me to assume the stored off size is a byte?, is that correct and is there anyway to fix/work around this, so >255 columns can be handled correctly?

TIA

--

---
You received this message because you are subscribed to the Google Groups "SemWare TSE Pro text editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to semware+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/semware/dd0a39ad-ee83-41e5-a571-be08d921aee7n%40googlegroups.com.

--

---
You received this message because you are subscribed to the Google Groups "SemWare TSE Pro text editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to semware+u...@googlegroups.com.

S.E. Mitchell

unread,
May 31, 2024, 6:38:52 PMMay 31
to sem...@googlegroups.com

J. David Boyd

unread,
May 31, 2024, 9:24:11 PMMay 31
to sem...@googlegroups.com
Huh.  I've been using TSE since it 'transitioned' from QEdit, and grew up.   Somehow, I never learned about the '-r' option.
Thanks for the information!     That will be a very handy option to know about.

On Fri, May 31, 2024 at 4:21 PM S.E. Mitchell <sammy.m...@gmail.com> wrote:
>> New here so please be gentle :-)
We'll try, but this is a rough bunch.  Mostly old curmudgeons :)

I just tried this: I made my window 310 columns, quit, and started
back up using the "-r" switch.  And it came right back to 310 columns.
Note: I have "Save State on Exit" turned on.

What version of TSE are you using, and what do you have set to make it
restore the window size?
--

On Fri, May 31, 2024 at 2:05 PM David H. <david....@gmail.com> wrote:
>
>  New here so please be gentle :-)
>
> I have noticed that if I resize my window to  > 255 columns, then quit and restart TSE, it opens up with just 80 columns. This would lead me to assume the stored off size is a byte?, is that correct and is there anyway to fix/work around this, so >255 columns can be handled correctly?
>
> TIA
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups "SemWare TSE Pro text editor" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to semware+u...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/semware/dd0a39ad-ee83-41e5-a571-be08d921aee7n%40googlegroups.com.

--

---
You received this message because you are subscribed to the Google Groups "SemWare TSE Pro text editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to semware+u...@googlegroups.com.


--
What's so funny about peace, love, and understanding? 

Carlo Hogeveen

unread,
Jun 1, 2024, 5:59:33 AMJun 1
to sem...@googlegroups.com

What the curmudgeon did not tell, was that restoring the state by starting TSE with the "-r" option will restore a lot more than just the screen size.
Especially it will also reload the last file(s) you were working on.
That might be more than you bargained for.

If you just want to restore your large screen size, then you might want to try:
https://ecarlo.nl/tse/ToolsAndExtensions.html#RestoreLargeVideoMode

Carlo




J. David Boyd

unread,
Jun 1, 2024, 2:45:27 PMJun 1
to sem...@googlegroups.com
Curmudgeons never tell all, that's part of what makes them so curmudgeonly.  😀

Personally, I like the fact of reloading all the last files I was working on, and don't care about the screen size very much.  I always resize it to fit whatever I'm working on anyway.

Thanks for the info!

--

---
You received this message because you are subscribed to the Google Groups "SemWare TSE Pro text editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to semware+u...@googlegroups.com.

knud van eeden

unread,
Jun 1, 2024, 3:59:27 PMJun 1
to sem...@googlegroups.com
> curmudgeon

cantankerous grumpy irascible testy
Weak matchesannoyed bad-tempered bearish choleric crabby cross crotchety grouchy moody nasty quick-tempered sharp snappy sour spiteful surly touchy vicious.

;


Sent from Yahoo Mail on Samsung Galaxy S24 Ultra / 1 terabyte / artificial intelligence

On Fri, May 31, 2024 at 22:21, S.E. Mitchell
>> New here so please be gentle :-)
We'll try, but this is a rough bunch.  Mostly old curmudgeons :)

I just tried this: I made my window 310 columns, quit, and started
back up using the "-r" switch.  And it came right back to 310 columns.
Note: I have "Save State on Exit" turned on.

What version of TSE are you using, and what do you have set to make it
restore the window size?
--

On Fri, May 31, 2024 at 2:05 PM David H. <david....@gmail.com> wrote:
>
>  New here so please be gentle :-)
>
> I have noticed that if I resize my window to  > 255 columns, then quit and restart TSE, it opens up with just 80 columns. This would lead me to assume the stored off size is a byte?, is that correct and is there anyway to fix/work around this, so >255 columns can be handled correctly?
>
> TIA
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups "SemWare TSE Pro text editor" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to semware+u...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/semware/dd0a39ad-ee83-41e5-a571-be08d921aee7n%40googlegroups.com.


--

---
You received this message because you are subscribed to the Google Groups "SemWare TSE Pro text editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to semware+u...@googlegroups.com.

William W. Viergever

unread,
Jun 1, 2024, 11:18:21 PMJun 1
to sem...@googlegroups.com
Wow!!

I just tried to say…

choleric crabby cross crotchety


10 times real fast 🤷‍♂️😎


--------------------------------------------------------------
William W. Viergever
Viergever & Associates
Health Data Analysis / Systems Design & Development
3607 La Habra Way 
Sacramento, CA 95864
wil...@viergever.net
www.viergever.net
 (916) 715-1768
--------------------------------------------------------------

On Jun 1, 2024, at 12:59 PM, 'knud van eeden' via SemWare TSE Pro text editor <sem...@googlegroups.com> wrote:

choleric crabby cross crotchety

knud van eeden

unread,
Jun 2, 2024, 2:38:14 PMJun 2
to SemWare TSE Pro text editor
That is currently not possible.

The maximum screen width is 238.

(even when using the -r option).

===

Steps to reproduce:

1. Run a clean latest TSE version 4.50 RC24.

2. Move and drag manually the right side of the open TSE window e.g. to column 325
   (that is where I tested with on my 75 inch monitor)

3. exit (via menu TSE > 'File' > 'Exit')

4. Restart TSE on the command line:

g32.exe -r

5. You will see a warning message that the message

"Can't restore windows: saved screen width (239) current max (238)".

6. But if you choose the size to be maximum screen width = 238 it works with -r
successfully

7. Conclusion: The maximum screen width value to choose must be 238 or smaller.



Inline image

OK, now exiting with screenwidth 238

Inline image

and that works OK when starting with g32.exe -r

Inline image

with friendly greetings
Knud van Eeden

knud van eeden

unread,
Jun 2, 2024, 3:38:21 PMJun 2
to SemWare TSE Pro text editor
That is thus not possible.

As a workaround you could maximize your TSE window screen to full screen in your monitor at startup.

1) Compile this TSE macro (paste it in a TSE file called foobar.s, save it, and compile it using <CTRL F9>, that will create a file called foobar.mac. Then run that file via menu TSE > Macro > Execute > type the path to foobar.mac, then start TSE by typing on the command line: g32.exe -efoobar.mac after which it will open TSE in full screen. This method is what I use here with my TSE (actually I put foobar.mac in my single TSE startup macro thus and start that instead)


DLL "<user32.dll>"
 INTEGER PROC SendMessage( INTEGER hwnd, INTEGER msg, INTEGER wparam, INTEGER lparam ) : "SendMessageA"
END
//
#DEFINE SWP_NOSIZE    0x0001
#DEFINE WM_SYSCOMMAND 0x0112
#DEFINE SC_MAXIMIZE   0xF030
//
PROC PROCWindowSetMaximizeDll( INTEGER windowsHandleI )
 SendMessage( windowsHandleI, WM_SYSCOMMAND, SC_MAXIMIZE, 0)
END
//
PROC Main()
 PROCWindowSetMaximizeDll( GetWinHandle() )
END

Carlo Hogeveen

unread,
Jun 3, 2024, 6:59:51 AMJun 3
to sem...@googlegroups.com

Knud wrote:
> That is currently not possible.
> The maximum screen width is 238.
> (even when using the -r option).

Your test is not wrong, but incomplete.

Or the rest of us live in an impossible world.
I knew it!

Carlo
https://ecarlo.nl/tse/ToolsAndExtensions.html#RestoreLargeVideoMode




Carlo Hogeveen

unread,
Jun 3, 2024, 7:25:07 AMJun 3
to sem...@googlegroups.com

 

Knud wrote:

> As a workaround you could maximize your TSE window screen to full screen in your monitor at startup.

> 1) Compile this TSE macro …

> …

 

There is no need to compile his TSE macro to maximize the screen at start-up.

 

If you maximize GUI TSE with the square in the upper right corner and then apply the menu “Options -> Save Current Settings”, then TSE will maximize the screen at start-up.

 

This will also work for screens > 255 colums.

 

Aside, TSE is distributed with the macro TogMax, which does the same as the square in the upper right corner.

 

Carlo

 

 

S.E. Mitchell

unread,
Jun 3, 2024, 7:30:36 AMJun 3
to sem...@googlegroups.com
315 columns:

image.png

Quit the editor.
Run "e -r"

image.png

And it restores back to 315 columns.

So I'm not sure what isn't working?

knud van eeden

unread,
Jun 3, 2024, 9:46:23 AMJun 3
to sem...@googlegroups.com
Better thus to live in the best of all worlds, citing Gottfried Wilhelm Leibniz ;-) 

with friendly greetings 
Knud van Eeden

Sent from Yahoo Mail on Samsung Galaxy S24 Ultra / 1 terabyte / artificial intelligence

--

---
You received this message because you are subscribed to the Google Groups "SemWare TSE Pro text editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to semware+u...@googlegroups.com.

knud van eeden

unread,
Jun 3, 2024, 1:48:22 PMJun 3
to sem...@googlegroups.com
Aha, you run

e -r

but I did run

g32.exe -r

can you still reproduce it then?

Note: The screenshot below of the message of 238 is thus reality produced by TSE g32.exe and I would say of course reproducible, it must come from somewhere I would say thus.

Can you thus get it to work using g32.exe -r?

Or does it only work with 'e -r'? Not tested yet.

Thanks
with friendly greetings
Knud van Eeden



knud van eeden

unread,
Jun 3, 2024, 1:56:59 PMJun 3
to sem...@googlegroups.com
> Your test is not wrong, but incomplete.

> Or the rest of us live in an impossible world.
> I knew it!


Aha!!!, it shows that Semware tested it with

 e -r

which is of course not the same as

 g32.exe -r

So maybe your fingers were a bit too quick today typing too early conclusions ;-) 

Let us see... ;-) ;-) ;-)


David H.

unread,
Jun 3, 2024, 2:16:31 PMJun 3
to SemWare TSE Pro text editor
Thanks for all the responses, to clarify further I'm using g32 in my customised v4.49 version. In Display/Colour Options my Startup Window Size is set to 'Last Session'. I don't want to maximize the my TSE window but do to want to have the option to set it to a size >255 columns. Currently I can set it to any size up to 255 columns quit the editor and restart it (with no command line options) and it opens back up to the size it was. If I go over 255 columns then the Window is resized to 80 columns with no error messages shown. This is what lead me to assume something was byte restricted somewhere.

Confused.com

S.E. Mitchell

unread,
Jun 3, 2024, 2:44:56 PMJun 3
to sem...@googlegroups.com
Sorry for the ambiguous reply.

I rename "g32.exe" to "e.exe".

So yes, it works fine with the Windows GUI version.
--

S.E. Mitchell

unread,
Jun 3, 2024, 2:50:31 PMJun 3
to sem...@googlegroups.com
Using "Last Session", I can reproduce the problem.
No idea why - as noted, it works fine if I simply restore the entire state.
I'll take a look - hopefully something simple.
--
> To view this discussion on the web visit https://groups.google.com/d/msgid/semware/cfcfd4f1-cba9-46e4-959f-4de3b6d9433en%40googlegroups.com.

knud van eeden

unread,
Jun 3, 2024, 3:23:51 PMJun 3
to sem...@googlegroups.com
Two situations:

1. Dragging the screen on the right to e.g. 333 
2. Exit
3. Restart with 

   g32.exe -r

(sometimes) shows the message in the screenshot below

4. It does *NOT* reduce to 80 columns in this case with '-r' (never seen that happening yet thus)


Inline image

Other situation as reported:

1. Dragging the screen on the right to e.g. 333 
2. Exit
3. Restart with 

     g32.exe 

(no extra options, so no '-r')
indeed reproduces the issue of the user,
thus only 80 columns after startup.

Tested with 4.50 RC24.





Inline image

knud van eeden

unread,
Jun 3, 2024, 3:28:58 PMJun 3
to sem...@googlegroups.com
And 'Last Saved Settings' are the default (e.g. in clean 4.50 RC24), so nothing special there, so likely not relevant here.


Inline image



David H.

unread,
Jun 3, 2024, 6:07:50 PMJun 3
to SemWare TSE Pro text editor
Ok good news then as its at least reproducible. Hopefully you can out find why and it's an easy fix!

David H.

unread,
Jun 12, 2024, 6:27:50 PMJun 12
to SemWare TSE Pro text editor
Thanks for fixing so quickly! :-) I will check the new release tomorrow. 

One other related thing I have noticed which I'm not sure if it's a bug or a misunderstanding on my part. I modified my config file to set the window size, position and font settings to last session and burnt my UI into the editor. Using my burnt in version of g32.exe in a clean install of TSE I then changed the font and the window size and quit the editor. On restart it was obvious my font and window resizing changes had not been changed. I went into the the options to confirm they were set to last session to make sure I had not messed up when I burnt in my UI. As expected, they were last session. I then saved my editors configuration via the UI which created a tsecfg.dat file. After doing that I immediately found that changing the font and window size etc was now saved correctly via TSE after every session... I then removed the tsecfg.dat file and confirmed my changes were no longer saved. 

So after all that waffle I guess my question is, is it by design that tsecfg.dat needs to exist for last session changes to be saved or is this a bug? If it does need to be present then should TSE not create it itself if last session is set and it detects that the file does not exist?

On Monday, June 3, 2024 at 7:50:31 PM UTC+1 S.E. Mitchell wrote:

S.E. Mitchell

unread,
Jun 13, 2024, 6:55:38 AMJun 13
to sem...@googlegroups.com
> So after all that waffle I guess my question is, is it by design that tsecfg.dat needs to exist for last session changes to be saved or is this a bug? If it does need to be present then should TSE not create it itself if last session is set and it detects that the file does not exist?

It is both a bug and by design :(

When we created the Windows version, we were "caught off guard" as it
were that one could not update running executables, as one could under
DOS. This was our kludge to work around that. In hindsight, I should
have just used the tse.ini for all these things. But I was young and
speed obsessed, and (for some reason) hated ini files at the time.

I have implemented your suggested fix. It seems to work :)
--
> To view this discussion on the web visit https://groups.google.com/d/msgid/semware/d9a46d0c-090d-4f0e-86bf-7a39b56b2d18n%40googlegroups.com.

knud van eeden

unread,
Jun 13, 2024, 7:13:12 AMJun 13
to sem...@googlegroups.com
> Sammy wrote: 
> speed obsessed

Yes, please keep that roling... 

:-)

David H.

unread,
Jun 13, 2024, 9:21:50 AMJun 13
to SemWare TSE Pro text editor

> I have implemented your suggested fix. It seems to work :)

Excellent, hopefully that'll prevent anyone else getting caught out. Thanks for looking into it for me :-)

Claus Futtrup

unread,
Jun 13, 2024, 11:50:33 AMJun 13
to sem...@googlegroups.com

> Sammy wrote: 
>> speed obsessed
>Yes, please keep that roling... 

Plus one ! (Count me in)
High speed and to a reasonable degree limiting resources are two key performance indicators.

With kind regards,
Claus

--

---
You received this message because you are subscribed to the Google Groups "SemWare TSE Pro text editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to semware+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages