How to rename terminal tab programmatically? #492
-
I have the code that setups terminal and opens it with custom tab name after some user actions. It looks like this: HashMap<String, Object> params = new HashMap<String, Object>(); It worked well for me with CDT 10.0. After updating to CDT 10.2 and higher the code above sets the correct name but VT100Emulator.processNewText() overrides it reading a startup sequence that Bash outputs with a command to change terminal title to current working directory value. When VT100Emulator reads this command it overrides terminal tab title with current working directory value calling: processNewText()->processAnsiOsCommand()->terminal.setTerminalTitle(ansiOsCommand.substring(2)) in VT100Emulator class. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes - renaming terminal being something user can do from the UI or from escape sequences was a new feature added in CDT 10.2 (N&N entry)
I don't think so, a PR adding this feature is very welcome. |
Beta Was this translation helpful? Give feedback.
Yes - renaming terminal being something user can do from the UI or from escape sequences was a new feature added in CDT 10.2 (N&N entry)
I don't think so, a PR adding this feature is very welcome.