twin icon indicating copy to clipboard operation
twin copied to clipboard

Newbie Question on Screen background

Open ashutoshmjain opened this issue 2 years ago • 7 comments

Hi - I am new to twin, thus this question and apologies for putting this in "issues" because I couldn't figure out any other communication channel ..

I am trying to change the screen background for all the windows to "White" and the font color to "Black" - basically for working on tty out in the sun.. I tried to tweak the configuration below but don't seem to get anywhere .. could someone please suggest the changes


set screen background

Background 1 High Black On Blue ( "\xb1"


Thanks

ashutoshmjain avatar Mar 15 '22 17:03 ashutoshmjain

Hello @ashutoshmjain, the "Background" configuration in .twinrc sets the foreground/background colors and fill character of the screen i.e. outside all windows.

There is currently no way to change the colors palette used by a window.

cosmos72 avatar Mar 16 '22 17:03 cosmos72

Thanks for the response .. got it .. I guess I was confusing between "screen" and "windows" . Btw , is it possible that windows are transparent so that it shows the color of the screen . Saying this cuz its really hard to read on black background in bright sun light ..

ashutoshmjain avatar Mar 17 '22 04:03 ashutoshmjain

There is currently no support for transparency.

cosmos72 avatar Sep 05 '22 17:09 cosmos72

As you involved SCREEN -- just curious if there is any way to use several SCREENs in Twin ?

because from the all logic and config options it's seems to be so, but each time I've tried -- could not even switch to the second SCREEN, maybe I've just missed something ?

thanks in advance for any help ! ;-))

dimitrik-fr avatar Sep 07 '22 10:09 dimitrik-fr

Long time ago there was support for multiple screens - it's not used since ages. No idea if it still works.

I'd need to (re)check how to create additional screens, and how to switch between them.

cosmos72 avatar Sep 07 '22 13:09 cosmos72

[UPDATE] There is an AddScreen "SCREEN_NAME" function you can bind to some key, mouse action, or menu entry in $HOME/.twinrc

Then you can (in theory) switch between screens by clicking on the two vertical arrows on the far right of the menu bar, provided the menu bar is not hidden by default (in case it's hidden, add GlobalFlags -HideMenu) to $HOME/.twinrc

But a quick test doing exactly that seems to hang twin in an infinite loop. There must be some bitrot in multiple screens support.

cosmos72 avatar Sep 07 '22 13:09 cosmos72

Seems like in my case creating several Screens is working. However, when trying to use a menu item for given Window "SendToScreen N" -- Twin hangs..

dimitrik-fr avatar Sep 07 '22 15:09 dimitrik-fr