Bug 196464 - [terminal] Terminal should wrap lines or support a horizontal scrollbar for dumb terminals
Summary: [terminal] Terminal should wrap lines or support a horizontal scrollbar for d...
Status: RESOLVED FIXED
Alias: None
Product: Target Management
Classification: Tools
Component: Terminal (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P2 enhancement (vote)
Target Milestone: 2.0.1   Edit
Assignee: Michael Scharf CLA
QA Contact: Martin Oberhuber CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-13 10:37 EDT by Martin Oberhuber CLA
Modified: 2007-10-24 07:41 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Oberhuber CLA 2007-07-13 10:37:35 EDT
CQ:WIND00065876

The terminal view currently always works in "Auto Window Resize" mode:
Given the size of the Terminal Window in Eclipse Workbench, that size is sent with a special terminal control sequence to the remote side such that the remote can adjust and appliations like vi know what size is available.

Some applications and especially dumb terminals do not have the capability of adjusting to a variable terminal size. Thus when a dumb terminal prints a long line of text, that line of text is not wrapped; but since there is no scrollbar available, the user cannot easily see or copy the line of text.

For dumb remotes, the Terminal should either 
a) provide a fixed-size option (bug #196462) such that it is known where to
   wrap; or,
b) wrap lines at the currently given terminal width (note that "intelligent"
   terminals cannot ever write past the width so the fact that wrapping
   messes up the line locations should not be an issue); or,
c) provide a horizontal scrollbar up to the width currently used by the dumb
   terminal.

For a start, we could implement either b) or c) only, with the possibility of letting the user choose in the future.
Comment 1 Martin Oberhuber CLA 2007-08-16 11:24:35 EDT
Marking P2 since Fix WIND00097480 is committed
Comment 2 Martin Oberhuber CLA 2007-10-01 07:56:47 EDT
Bulk update target milestone 2.0.1 -> 3.0
Comment 3 Michael Scharf CLA 2007-10-22 01:36:45 EDT
Option b) is currently implemented: the terminal wraps lines at the current width

however, when changing the width of the terminal, the terminal does not re-wrap the wraped lines:
- if the width expands, then there is a 'white bar' at the right size
- if the width shrinks, is seems that characters are lost at the right. Making the terminal wider restores the characters at the right side

Option c) is a bit tricky, because this would interfere with a scrollbar created for bug 196462. Plus lines can become very long and scrolling vertically is not very convenient.
Comment 4 Martin Oberhuber CLA 2007-10-24 07:41:24 EDT
Consider this fixed since option (b) is implemented -- wrapping lines at the terminal width.