fyne-io / terminal

A graphical terminal emulator for Linux using Fyne
Other
256 stars 38 forks source link

Allow setting the command that the terminal should run on start #79

Closed obvionaoe closed 7 months ago

obvionaoe commented 7 months ago

Hi, I'm trying to make a simple terminal window that automatically runs a TUI. So I'd like to pass the TUI as the command instead of the default shell. Can the command be made into a public property?

Thanks

andydotxyz commented 7 months ago

This is already possible. Instead of RunLocalShell (which runs an interactive shell) you should use the RunWithConnection constructor - it is illustrated in the README file as well.

obvionaoe commented 7 months ago

Thanks, I missed that on my first look, but is there no way to run an arbitrary command without the overhead of an SSH session?

andydotxyz commented 7 months ago

My apologies, I was not meaning to suggest running through ssh.. It is an illustration that any command can be run, just hook up the input and output streams

obvionaoe commented 7 months ago

Ah my bad, I thought it required SSH, but the streams are the things being passed. Thank you :bowing_man: