Bug 502196 - Text doesn't wrap when you type past end of line
Summary: Text doesn't wrap when you type past end of line
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: terminal (show other bugs)
Version: Next   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-26 13:26 EDT by Doug Schaefer CLA
Modified: 2020-09-04 15:12 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Doug Schaefer CLA 2016-09-26 13:26:37 EDT
This could be just a Mac issue but I'll test on Windows in a minute.

With the Local terminal (for example), as I type past the end of the line it doesn't move to the next line to continue echo'ing the text, it just overwrites the line I was typing.

Interesting enough, when I do a ^U to clear the line, it clears all the lines I though I should have had, thus erasing the previous lines.
Comment 1 Doug Schaefer CLA 2016-09-26 13:43:52 EDT
Works fine with the Windows Local terminal. Will try Linux next.
Comment 2 Doug Schaefer CLA 2016-09-26 14:15:49 EDT
Interesting. Happens on Linux too.

That points possibly to a problem with the native serial port settings for POSIX, which is shared with Mac and Linux.
Comment 3 Doug Schaefer CLA 2016-09-26 14:39:37 EDT
No wait, that's not right. These are local terminals, not serial. Still seems like a Unix type thing tho.
Comment 4 Doug Schaefer CLA 2016-09-26 14:40:36 EDT
Also interesting, doesn't happen with the Terminal View Local connection, only with the o.e.remote Local connection.
Comment 5 Martin Oberhuber CLA 2016-09-26 15:25:49 EDT
Sounds like a dup of https://bugs.eclipse.org/bugs/show_bug.cgi?id=494809 which was a bug in CDT's OSX PTY (fixed in Neon). What version of the cdt.native fragment for OSX do you have ?
Comment 6 Martin Oberhuber CLA 2016-09-26 15:37:15 EDT
Ah, when it happens with o.e.remote only, then it looks like the o.e.remote API doesn't properly handle the resize API. These should be passed through to the PTY to report the terminal view's size.

Please try typing "resize" in your terminal. This should send ANSI sequences from the remote to the terminal to detect its size; from that point on, everything should work as expected... until you change the terminal size.

The issue should be relatively easy to debug in o.e.remote, when you set a breakpoint on LocalProcess#setTerinalSize() :
https://git.eclipse.org/c/ptp/org.eclipse.remote.git/tree/bundles/org.eclipse.remote.core/src/org/eclipse/remote/internal/core/services/local/LocalProcess.java
Comment 7 Martin Oberhuber CLA 2017-10-21 03:18:34 EDT
Hi Doug, do you think this is a dup of
https://bugs.eclipse.org/bugs/show_bug.cgi?id=526324 ?

Or when it occurred with the "remote Local" terminal only in 2016, maybe a dup of 
https://bugs.eclipse.org/bugs/show_bug.cgi?id=468858 ?

Would be good to know if you can still reproduce the original problem with Terminal 4.3 / Oxygen, or we can close this.
Comment 8 Jonah Graham CLA 2020-05-01 10:08:43 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.)