Wednesday, May 1, 2024
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 3405  / 2 Years ago, sun, march 27, 2022, 12:03:28

I am running 16 debug processes simultaneously with our adapted gdb (called e-gdb). The processes are invoked by a bash script, using:



gnome-terminal -e 'e-gdb -x gdbNN.cmd progNN.e'


To manage the multiple sessions I can open multiple terminals using the --geometry option to arrange them tiled on my screen. Alternatively, I can use the --tab option to have them all in one terminal.



When the sessions end I close the terminal(s) with a click (I don't want it to auto-close).



So, with multiple terms I need to click 16 times while with tabs I click once, but I have to switch between tabs to see the session results. I would like tiled tabs in a terminal so I can view them simultaneously and close all in a single click.



Is there a way to tile tabs?
If not, can I close all debug terminals in one action?



UPDATE: Is there an easy way to kill multiple terminals based on their title? I am using the -t option to name the windows. Is there something like kill -name '*DBG*'?


More From » gnome-terminal

 Answers
3

The solution that I found for myself to this problem was to use wmctrl. It allows for very granular control over your windows. So I have a set of terminals titled Acyrid-Live and Acyrid-Beta.



wmctrl -F -c Acyrid-Live will only close that window



It's a pretty useful set of tools.



http://tomas.styblo.name/wmctrl/



Edit: Yes I realize this is an oldish thread, but it's also one of the most popular results when searching how to close terminals by title, so I figured I would post a successful solution.


[#42285] Sunday, March 27, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
adedes

Total Points: 454
Total Questions: 114
Total Answers: 111

Location: Turks and Caicos Islands
Member since Fri, May 8, 2020
4 Years ago
;