How can I rename a new terminal?


My use case is to use multiple terminal windows and I want to rename specific terminal as per their purpose in the tool. Is there anyway I can do it with existing terminal implementation

@kalyan3d You can just use:

@inject(TerminalService) terminalService: TerminalService;
await this.terminalService.newTerminal({ title: "Your Terminal Title" });

Thanks for the response. I got this will work while creating a new terminal but I want to add rename option to the existing terminal as well.

For existing terminal widgets, you can just call setTitle(...).