You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi it's pariah here
some thinking about Tmux & the best way to go forward
My original idea was to add a socket per server , which allows the console to run in another tmux session great !!
this however this can be expanded,
Open a new tmux socket, so LGSM can run, if required, as a window in a tmux instance
Within this instance open the server as a window, this will make no difference if the tmux instance is inside another tmux instance or not.
Any subsequent servers started by the same user are added to the LGSM tmux socket as a new window rather than starting a new session in the default socket.
This then allows multi server users to open a console from whichever server e.g running ./fofserver c and get a result like this
as you can see tmux has 'tabbed' each server under it's name and highlighted & setted the focus of the console selected, this then does allow the user to then click the other tabs to view the other consoles. As you would expect if only one server is running there is only one tab !
pressing <tmux prefix key> then <tmux modifier> e.g <ctrl-b> <d> closes the console but keeps all servers alive (you would expect that).
To keep this correct there is a custom config file for the LGSM tmux socket which allow you to change the <tmux prefix key> and if you wish the <tmux modifier> along with status bar colour, status bar position etc.
With the changes to PHP, Apache & Nginx I can now support LGSM fully within my game server API, which to be fair was all I wanted to do back in 2014 when I started the API.
on a personal note I am knocking on over 60 years of age, given this may have upset the devs here with perhaps my short responses ! But I recently had a stroke so no longer work so I can code 24/7 ...
I have forked LGSM with the changes to make this happen at https://github.com/JimTR/LinuxGSM for anyone to look at. I will not push this back into the LGSM project as my coding style may not match the repro standards & my health issues may show some odd typo's
Thanks for not reading
Pariah
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi it's pariah here
some thinking about Tmux & the best way to go forward
My original idea was to add a socket per server , which allows the console to run in another tmux session great !!
this however this can be expanded,
This then allows multi server users to open a console from whichever server e.g running ./fofserver c and get a result like this
as you can see tmux has 'tabbed' each server under it's name and highlighted & setted the focus of the console selected, this then does allow the user to then click the other tabs to view the other consoles. As you would expect if only one server is running there is only one tab !
pressing
<tmux prefix key>
then<tmux modifier>
e.g<ctrl-b> <d>
closes the console but keeps all servers alive (you would expect that).To keep this correct there is a custom config file for the LGSM tmux socket which allow you to change the
<tmux prefix key>
and if you wish the<tmux modifier>
along with status bar colour, status bar position etc.With the changes to PHP, Apache & Nginx I can now support LGSM fully within my game server API, which to be fair was all I wanted to do back in 2014 when I started the API.
on a personal note I am knocking on over 60 years of age, given this may have upset the devs here with perhaps my short responses ! But I recently had a stroke so no longer work so I can code 24/7 ...
I have forked LGSM with the changes to make this happen at https://github.com/JimTR/LinuxGSM for anyone to look at. I will not push this back into the LGSM project as my coding style may not match the repro standards & my health issues may show some odd typo's
Thanks for not reading
Pariah
Beta Was this translation helpful? Give feedback.
All reactions