Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Twin --hw=X window cutoff. #64

Open
mikedebian opened this issue Jan 14, 2021 · 3 comments
Open

Twin --hw=X window cutoff. #64

mikedebian opened this issue Jan 14, 2021 · 3 comments
Assignees
Labels

Comments

@mikedebian
Copy link

mikedebian commented Jan 14, 2021

Hello again!

When starting twin with xinit, it starts twin in a small, cut off window. Starting another X app from within the twin terminal starts that window in full size. I'd estimate the twin window to be about 800x600, starts in the top left corner of the screen and gets cut off.
I don't know whether this is a fault with X, my setup or twin.

Starting xorg with say, xterm, gives me the entire display. So does starting X with another program but twin. Also, the mouse cursor in twin does not show until another program from within twin (x mode) is started. Until then, it's pretty much blind clicks, but that's a separate issue.

Running arch linux
KMS enabled, resolution 2560x1440.
AMDGPU

Xterm

twin

@cosmos72
Copy link
Owner

cosmos72 commented Jan 20, 2021

The default size of twin "desktop" is 100x30 characters, and the default font is 8x16 pixels.
Multiplying the two gives 800x480 pixels, which is near to the 800x600 pixels you mention.

There is currently no way to specify a different desktop size, but it can be added quite easily.

Also, by default twin initially opens an 80x25 characters terminal ("Twin Term") window.
This can be customized by taking the file system.twinrc distributed with the sources (usually installed in /usr/local/lib/twin/)
and copying it to .twinrc in your home directory - it is quite heavily commented,
and the section that opens the initial terminal is

ExecTty "" ; Wait "Twin Term" ; Maximize

To create a terminal with different size, you can for example replace it with

ExecTty "" ; Wait "Twin Term" ; Resize 98 28

that will fully occupy the 100x30 desktop, if you count the window borders.

@mikedebian
Copy link
Author

Thank you for your reply!
I hope you have time and will to add the option to set display size of the twin "desktop".
I must have remembered it wrong working previously.

@kettle-7
Copy link

Maybe you could start something like OpenBox so that you can maximise it...

Would that work?

@cosmos72 cosmos72 self-assigned this Sep 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants