Bug 341721 - [rseterminal] ability to rename SSH terminals
Summary: [rseterminal] ability to rename SSH terminals
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: terminal (show other bugs)
Version: Next   Edit
Hardware: PC Linux
: P3 enhancement with 3 votes (vote)
Target Milestone: 10.2.0   Edit
Assignee: Jonah Graham CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2011-04-03 12:48 EDT by Yevgeny Shifrin CLA
Modified: 2021-04-24 20:29 EDT (History)
3 users (show)

See Also:


Attachments
set terminal using the AnsiOsCommand 0 (9.99 KB, image/jpeg)
2011-04-04 14:16 EDT, Michael Scharf CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yevgeny Shifrin CLA 2011-04-03 12:48:19 EDT
Build Identifier: M20110213-0444

Providing ability to rename SSH terminals. These names should be shown in "Terminals" view in tabs and in "Remote Systems" view.

Reproducible: Always
Comment 1 Martin Oberhuber CLA 2011-04-03 17:28:22 EDT
What's the expected value of this? Who needs this and why?

Note that in the standalone version of Terminal, it is possible to give the connection a name already today. That name is shown as the tab name of the Terminal view. Also note that while your summary asks this for "SSH" terminals the functionality would have to be generic for any kind of connection.

Are you planning to provide a patch for this?
Comment 2 Yevgeny Shifrin CLA 2011-04-04 03:44:35 EDT
Hi,

When working in Linux, you can open terminal in several "tabs". On each tab you do different actions (building, etc.). From our experience it is very usefull to provide meaningful names to each tab, especially if you have many "tabs" open. I was wandering if this feature could be added to eclipse, currently the name derives from "connection name" with numbering. I mentioned "ssh terminals" because this was my case, by I don't see a problem if the solution is more generic. 

Unfortunately I don't have knowledge for providing such feature. I hope someone will find time for making this enhancement in future releases.

Thanks a lot,
Yevgeny
Comment 3 Martin Oberhuber CLA 2011-04-04 06:50:24 EDT
Hm... I can see how named tabs could be useful, but I cannot quite see how a tab would initially get its name. Do you have any idea for the workflow ?

I'm going to mark this as "helpwanted" - We'll gladly review any patches for this and help Community interested in providing a patch get started.
Comment 4 Yevgeny Shifrin CLA 2011-04-04 07:02:56 EDT
Hi,

There could be several workflows:
1) When you run "Lunch Terminal" it will open a dialog with default name as today. User can set the name.
2) Adding "rename" option in the context menu.

In my opinion, workflow "2" is a must. Workflow "1" is a "nice to have".

Thanks,
Yevgeny
Comment 5 Martin Oberhuber CLA 2011-04-04 08:01:09 EDT
I cannot accept workflow 1 since it forces users who don't care about the name to do another buttonclick or think about a name.

Workflow 2 seems ok in terms of usability (rightlick on the tab), though I don't know if it's technically doable.

Again, patches would be appreciated.
Comment 6 Michael Scharf CLA 2011-04-04 14:16:43 EDT
Created attachment 192490 [details]
set terminal using the AnsiOsCommand 0

The stand-alone terminal view has two ways of setting the name of the view:
1. In the settings you can provide a name of the terminal (before you connect
or after connceting). This will change the title of the view

2. If the VT100 emulation receives the command
   ESC ']' '0' ';' TEXT CTRL-G
It will set the title to TEXT. You can try this by using echo:
    echo -e  "\033]0;TITLE\007"
(See the screen-shot)

This will call
   org.eclipse.tm.internal.terminal.emulator.VT100Emulator.processAnsiOsCommand()
Which in turn calls
   org.eclipse.tm.internal.terminal.view.TerminalView.TerminalListener.setTerminalTitle(String)
  
It seems that the RSE terminal ignores that notification.....
Comment 7 Jonah Graham CLA 2020-05-01 10:10:53 EDT
The Terminal component of the Eclipse Ecosystem has a new home. The Terminal is now part of the Eclipse CDT project[1].

This change means a new Git repo[2], P2 site[3] and Bugzilla component. The terminal will continue to be delivered as part of the quarterly Simultaneous Release of Eclipse as well.

The marketplace entry[4] had not been updated in a few years. It will once again install the latest release of the terminal on the latest release of the whole IDE (currently 2020-03).

If this bug is no longer relevant, please feel free to comment or close the bug. If you can confirm if this issues still occurs in the latest release please do let me know in a comment.

[1] https://wiki.eclipse.org/CDT/User/NewIn911
[2] https://git.eclipse.org/c/cdt/org.eclipse.cdt.git (in the terminal directory)
[3] current release is 9.11 - P2 site https://download.eclipse.org/tools/cdt/releases/9.11/
[4] https://marketplace.eclipse.org/content/tm-terminal

(This comment was added to all open terminal bugs along with changing the Product/component pair to CDT/terminal.)
Comment 8 Fabiana Alejandra Misiul CLA 2021-02-26 07:53:51 EST
Hi, I need to Know is this bug has been resolved, because I currently have the same problem with this version of Eclipse:

Version: 2.2.0.v20160606-1100
Build id: I20160606-1100

(c) Copyright Eclipse contributors and others 2000, 2016.  All rights reserved.
Visit http://www.eclipse.org/platform


Regards, Fabiana.
Comment 9 Eclipse Genie CLA 2021-02-26 13:31:32 EST
New Gerrit change created: https://git.eclipse.org/r/c/cdt/org.eclipse.cdt/+/176943
Comment 10 Eclipse Genie CLA 2021-02-26 14:20:51 EST
New Gerrit change created: https://git.eclipse.org/r/c/cdt/org.eclipse.cdt/+/176947
Comment 11 Jonah Graham CLA 2021-02-26 14:24:02 EST
Hi Fabiana,

Thank you for checking in on this item. I don't know why it wasn't resolved when it was first raised, but the terminal project has gone through lots of changes since then. I have submitted some patches that I hope to be merged in time for the CDT 10.2.0 release in a few weeks.

Note that Comment 0 refers to the "Terminals" and "Remote Systems" views. I am only providing fixes for the terminals view.

Thanks
Jonah
Comment 14 Jonah Graham CLA 2021-03-01 19:02:02 EST
Done. A new entry has been made in the New and Noteworthy page: https://wiki.eclipse.org/CDT/User/NewIn102#Terminal
Comment 15 Eclipse Genie CLA 2021-04-23 11:07:01 EDT
New Gerrit change created: https://git.eclipse.org/r/c/cdt/org.eclipse.cdt/+/179736