This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 86351 - Only one column is visible in the termulator
Summary: Only one column is visible in the termulator
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Terminalemulator (show other bugs)
Version: 6.x
Hardware: Sun All
: P3 blocker (vote)
Assignee: ivan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-03 03:13 UTC by ivan
Modified: 2010-08-10 21:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ivan 2006-10-03 03:13:43 UTC
Sometimes in SunStudio the termulator starts out with a buffer
width of 1, and io that is connected to it shows up in only
one column.
This wasn't a big problem in SunStudio 11 but somehow in SunStudio 12
it is exacberated by different startup sequences or such.
Comment 1 Thomas Preisler 2006-10-25 17:56:25 UTC
Changed SSX3 whiteboard status to SSX3-MPK
Comment 2 ivan 2006-12-01 22:27:04 UTC
Applied a quick fix in Screen.java:

+    // When under NB we sometime get resizes when validate() happens
+    // while Term !isShowing() so the sizes are <= 0.
+    // The result is a 1-column output.
+    // In the following we discard "bad" resizes as a workaround.

A more comprehensive fix, potentially involving re-wrapping
of text on resizes will have to wait til later.
Comment 3 ivan 2008-10-22 09:39:48 UTC
Term was originally written as a no-frills reimplementation of traditional
terminal emulators, like xterm, which usually appear in standalone windows 
which are of constant width (usually 80 columns). Traditional termulators
buffer lines _after_ wrapping them. Try this: narrow an xterm (or konsole)
to 20 columns. cat some large file, widen it to 80 columns and scroll
back in history ... you'll see a lot of white space between columns 20 and 80.

Also at the time Term was introduced to NB SDI mode was still live and
the likelihood of constant width terminal windows was high.

This still needs to be addressd although it's a technically challenging
problem as it interacts with other constraints: optimized repainting
and "infinite" buffers a'la output2.
Comment 4 Alexander Pepin 2010-08-10 16:25:22 UTC
please re-create the issue if it's still actual
Comment 5 ivan 2010-08-10 21:06:46 UTC
Yes, the specific problem of 1-column wide terminals has been addressed.
I'll close this and file a new RFE to address general re-wrapping:
bug #189365