EternalTerminal icon indicating copy to clipboard operation
EternalTerminal copied to clipboard

exit gets appended to -c

Open kurktchiev opened this issue 2 years ago • 2 comments

So I am running ET as follows:

❯ et --macserver -c "tmuxinator start zeus" zeus:3335

In order to connect to my headless mac server and have it fire up my tmux session automatically. However, no matter what et appends exit to my command so when i lose connection instead of patiently waiting for a reconnect I get dumped out and have to fire up et again, which kinda defeats the purpose.

How do I tell et to not throw in the exit or at least achieve what I am trying to achieve here?

Example of command and output from et before firing up tmux

❯ et --macserver -c "tmuxinator start zeus" zeus:3335
tmuxinator start zeus; exit

kurktchiev avatar Jan 13 '22 22:01 kurktchiev

Can you submit a PR that adds a new switch which does the same as -c but without calling exit?

On Thu, Jan 13, 2022, 4:34 PM Boris Kurktchiev @.***> wrote:

So I am running ET as follows:

❯ et --macserver -c "tmuxinator start zeus" zeus:3335

In order to connect to my headless mac server and have it fire up my tmux session automatically. However, no matter what et appends exit to my command so when i lose connection instead of patiently waiting for a reconnect I get dumped out and have to fire up et again, which kinda defeats the purpose.

How do I tell et to not throw in the exit or at least achieve what I am trying to achieve here?

Example of command and output from et before firing up tmux

❯ et --macserver -c "tmuxinator start zeus" zeus:3335

tmuxinator start zeus; exit

— Reply to this email directly, view it on GitHub https://github.com/MisterTea/EternalTerminal/issues/485, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACK5P6LTDQBTKTGW45JDNLUV5HPDANCNFSM5L5EFNRQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

MisterTea avatar Jan 17 '22 05:01 MisterTea

@MisterTea as far as I can tell this is the offending line https://github.com/MisterTea/EternalTerminal/blob/8ec6b8569430166ec63268e780ee613c37910a2e/src/terminal/TerminalClient.cpp#L214 but I am not 100% sure

kurktchiev avatar Jan 26 '22 20:01 kurktchiev