You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TM Terminal: no shell prompt with bash or zsh #831
Thanks @space88man you have provided enough information for me to figure out what is going wrong.
The problem is the string terminator implementation in the terminal. Escape strings (like OSC 133 commands) can end with BEL or ESC \. In the terminal only the BEL terminator was implemented:
In addition, the terminal didn't properly handle badly formed clients, quoted from here:
If an application does not send the string terminator, that is also
an error from the standpoint of a user. To accommodate users of
those applications, xterm has resource settings which allow
workarounds:
o The Linux console's palette sequences do not use a string
terminator. The [brokenLinuxOSC](https://invisible-island.net/xterm/manpage/xterm.html#VT100-Widget-Resources:brokenLinuxOSC) resource setting tells xterm to
ignore those particular sequences.
o The terminal should accept single-byte controls within the
string. But some applications omit a string terminator, like
the Linux console. The [brokenStringTerm](https://invisible-island.net/xterm/manpage/xterm.html#VT100-Widget-Resources:brokenStringTerm) resource setting tells
xterm to exit string mode if it decodes a common control
character such as carriage return before the string terminator.
had the terminal handled it properly we would have been ok too.
It would be helpful if you can test it before it is published.
Tested on 2024-06 by munging the VT100*.class files from terminal.control_5.5.400 jar into the existing 5.5.300 jar. Also tested by upgrading just the TM components into 2024-06.
All work - bash, zsh, tmux, screen as shell commands.
Activity
space88man commentedon Jun 18, 2024
Ping @jonahgraham
This looks the same as #776 - so may not be macos specific
space88man commentedon Jun 19, 2024
Update : it is related to shell customisation; i.e. all the stuff that fedora puts into
/etc/profile.d/*sh; going to take a while to bisect that...Root cause is Fedora's
/etc/profile.d/vte.sh: pasting here for referencejonahgraham commentedon Jun 19, 2024
Thanks @space88man you have provided enough information for me to figure out what is going wrong.
The problem is the string terminator implementation in the terminal. Escape strings (like OSC 133 commands) can end with BEL or ESC \. In the terminal only the BEL terminator was implemented:
cdt/terminal/plugins/org.eclipse.tm.terminal.control/src/org/eclipse/tm/internal/terminal/emulator/VT100Emulator.java
Lines 430 to 435 in ba16b70
Although ESC \ has been part of the spec for a long time, I guess most places didn't use it until recently. gnome started using it very recently with this commit which basically supports https://iterm2.com/documentation-escape-codes.html for allowing terminals to navigate the terminal output better.
For now I can properly ignore the unsupported sequences and I will provide a PR for that in a moment.
jonahgraham commentedon Jun 19, 2024
In addition, the terminal didn't properly handle badly formed clients, quoted from here:
had the terminal handled it properly we would have been ok too.
Add support for String Terminator to be ESC \
space88man commentedon Jun 20, 2024
@jonahgraham - can this go into a p2 update before 2024-09?
jonahgraham commentedon Jun 20, 2024
Yes it can and will - I will publish an update soon. It would be helpful if you can test it before it is published. In a couple of hours the main branch should be built here https://ci.eclipse.org/cdt/job/cdt/job/main/415/artifact/releng/org.eclipse.cdt.repo/target/repository/ and then I'll backport the fix to the current release branch.
(reopening until fixed on the release branch)
space88man commentedon Jun 20, 2024
Tested on 2024-06 by munging the
VT100*.classfiles from terminal.control_5.5.400 jar into the existing 5.5.300 jar. Also tested by upgrading just the TM components into 2024-06.All work - bash, zsh, tmux, screen as shell commands.
Thank you!
Add support for String Terminator to be ESC \
Add support for String Terminator to be ESC \
Add support for String Terminator to be ESC \
Add support for String Terminator to be ESC \
Add support for String Terminator to be ESC \ (#855)
jonahgraham commentedon Jul 2, 2024
Fixed on 11.6 branch which should be released soon as 11.6.1
Add support for String Terminator to be ESC \