m_commandLine is not useful to distinguish terminals
as it may contain wrapper scripts with temporary arguments that make each invocation of a target
spawn a new terminal window.
Instead use the provided "shell name".
Also make sure to use the actual target name as the
shell name in runcontrol.
Fixes: QTCREATORBUG-32197
Change-Id: I8c0760be375d559391dbd831080aa7153786f411
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Use the full command line to determine the Terminals
reuse key, as the executable may be a helper tool like "disclaim"
on macOS
Fixes: QTCREATORBUG-32197
Change-Id: I9d6cba4963fce5e2c4b2506577346446a564d5fc
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Allows a terminal to display the "correct" program name.
Fixes: QTCREATORBUG-29281
Change-Id: I73dacf71078dd1407ddda7bbc33a93c5ad172cbf
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
When restarting an app, make sure the terminal is visible and focused.
Change-Id: I305eb59ddf2f5e0f2844d47e51500953c3145c38
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
To keep the terminal from closing immediately, ask the user
to press enter after the inferior exited.
Make it configurable as the terminal plugin does not need
this.
Change-Id: I1949895f022a54539a6139be9f92fdc698f6534e
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Adds a new helper app "process_stub" that replaces the previous.
"process_stub_unix/win". The purpose was and is to allow processes
to be "injected" into other hosts apps like terminals while still
being able to control and debug them.
A new base class called "TerminalInterface" is used for both the new
Terminal plugin and the legacy TerminalProcess implementation.
Fixes: QTCREATORBUG-16364
Change-Id: If21273fe53ad545d1a768c17c83db4bf2fd85395
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: hjk <hjk@qt.io>