Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to execute code in tabs #48

Open
falent opened this issue Feb 9, 2018 · 2 comments
Open

How to execute code in tabs #48

falent opened this issue Feb 9, 2018 · 2 comments

Comments

@falent
Copy link

falent commented Feb 9, 2018

Hi,

Im trying to open in bash some tabs

lxterminal \
--tabs =1 --comand = "sleep 20s", 2 --command "sleep 10;" 

but it dosent't work :( Is it possible in lxterminal to open and execute some tabs?

In gnome terminal I can do something like that:

gnome-terminal \
--tab -e "bash -ic \" echo 'First tab' "; exec bash\"" \
--tab -e "bash -ic \"echo 'Second tab' "; exec bash\"" 
@ZjYwMj
Copy link

ZjYwMj commented Sep 20, 2020

As far as I can tell with lxterminal 0.3.2:
From the command line you can open many tabs. But you only got one command to execute, no matter how many tabs there are:
lxterminal --tabs=1,2,3,4,5 --command='sleep 2'

Updating my comment, at Jun 14, 2021:
What happens with my example, now with lxterminal 0.4.0, is that the tabs gets opened, and the command is run. But as soon as the command terminates, that tab is closed. However, as before, one only get one command to execute. In the 1st, leftmost, tab that will be opened. All other tabs can't have commands to execute. So, with long running commands, the tab stays opened. As long as the command does not exit. As far as I can tell, in order to have the tab stay opened even after the command exit, one should examine the underlying library. vte3, in this case. Perhaps there is no simple fix.

@FinboySlick
Copy link
Contributor

I think this would be a reasonable feature request. Perhaps coupled with this one: #86

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants