cosmos72 / twin

Text mode window environment. A "retro" program for embedded or remote systems, that doubles as X11 terminal and text-mode equivalent of VNC server
Other
661 stars 39 forks source link

Twin --hw=X window cutoff. #64

Open mikedebian opened 3 years ago

mikedebian commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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

Would that work?