cool-retro-term icon indicating copy to clipboard operation
cool-retro-term copied to clipboard

Remember Window Size

Open proedie opened this issue 9 years ago • 16 comments

Hello!

cool-old-term should remember the size (and position and the screen) of its window when the programme is closed. When re-opened, the window should have the same size (and position) as before.

Cheers!

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

proedie avatar Aug 15 '14 13:08 proedie

Hi, sorry for the late response. While I understand your request I believe that this should be left to the OS, and not being "hardcoded" into the application. I will leave this open for a while to listen to some other opinions.

Swordfish90 avatar Aug 19 '14 08:08 Swordfish90

Um. Okay, the position of the window might be an OS thing, but the size is definitively the application's job. It's depending on the design of the windows. Especially for this application the window size matters as it also defines how many lines fit on the screen and how long one line is.

proedie avatar Aug 20 '14 13:08 proedie

Well I think this is a reasonable solution (the proverbial middle ground :D ). It would be nice to remember (or just expose in settings) a default size for the terminal; that would be useful.

Swordfish90 avatar Aug 21 '14 10:08 Swordfish90

As a bonus, the window size could be profile dependent. 'Vintage' could, for example, be set to a size of 64 × 16 characters, like a TRS-80, (using the Comodore fonts that almost works in 4:3.), but maybe that's too much ... and also a different request.

proedie avatar Aug 21 '14 13:08 proedie

+1 to remembering the window dimensions. Please ! :)

Letiliel avatar Sep 09 '14 16:09 Letiliel

Although this does not affect me, I am voting that the application must to do this. If the user want programs to rember their positions they should choose a window manager or other daemon that does this for them; not to that assume everyone wants the application to remember its size ans position.

maandree avatar Sep 09 '14 16:09 maandree

I'd agree that remembering both size and position should be the job of the window manager, but after reading an endless discussion about this for metacity, it seems there is no way for the window manager to know for sure that a window is the same that was previously opened. That's why they say it has to be managed by application developers. Apparently no consensus on a global solution has been reached yet. :(

Letiliel avatar Sep 09 '14 17:09 Letiliel

No, desktop environment developers have not agreed on how to do this yet. But a program can say what program its window's belongs and which window for the program it is to so window managers can be reasonable sure that a window is the same as a previously opened window. It is up to programs not to indentify their windows in a stupid way: just identify with the package name (should be configurable at build time) and what mission the specific window has. This construct is also used in tiling window managers to identify which windows should be floating.

maandree avatar Sep 09 '14 17:09 maandree

I think we should plan on the application having multiple windows and address handling that issue.

We can't just save the last 50 positions and restore terminals to those sizes and positions, what the user did yesterday or a week ago may have no place for for 25th window they opened today. For example, sysadmins frequently open multiple windows performing their daily activities. I have also seen where an application who's position is being tracked by the window manager can have it's position information corrupted and without the user having a clear way to reset the position and size (which won't be available in the application) the user will be stuck in their tracks trying to figure out how to fix it. The first place those users will come is to the dev because it will look like it is an application bug to them.

I think the application should handle saving and restoring it's position(s) and size(s), but only for windows that were open when it was quit, windows that are newly created should be dynamically positioned by the OS for optimal coverage and size be customizable by the user likely in the terminal style section. This way if the position data in the app's config is corrupted the user can fix the issue simply within the app by closing all the windows (not quitting the app) and then opening a new window.

sirgatez avatar Sep 10 '14 05:09 sirgatez

Even though many programmes do remember their size – this is not a WM thing –, I would suggest to use the same approach as other terminal emulators: Determine the window size from columns and rows in the current font.

For example, the default should be 80 columns, 24 rows.

As this could be, as I already suggested earlier, added to the profiles, different ‘ages’ of computing could be simulated, from 36 × 16 to 80 × 24. (Or any custom size, actually.)

proedie avatar Sep 10 '14 12:09 proedie

I agree, terminal size as you indicate, and scaling should be saved for each window. I add scaling because if the default value for the terminal selected is changed it will affect terminal visibility of existing windows in an unexpected way. Instead each terminal should be permitted to have it's scaling adjusted with something line CMD[+]/CMD[-] after opened and/or via a window specific option (perhaps on right click).

sirgatez avatar Sep 10 '14 13:09 sirgatez

Please, implement this future. It's the application's job to remember it's size. It's specially important for a terminal.

paulolieuthier avatar Dec 23 '15 12:12 paulolieuthier

I disagree and think that it is your window manager that should manage your windows, including remembering the size and position if you want that, which I do not.

maandree avatar Dec 23 '15 15:12 maandree

Also it is not “the applications' job”. There is no consensus on how this should be done.

maandree avatar Dec 23 '15 15:12 maandree

This feature do cause a ugly issue on cinnamon desk. It wont let you size your fullscreen down again.

Yaksinikos avatar Dec 20 '17 17:12 Yaksinikos

Is this request abandoned? It would be really useful to have new terminals open with the correct size, preferably profile-definable.

wyan avatar Oct 31 '23 12:10 wyan