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 21577 - Shouldn't be able to select "no text" in the output windows
Summary: Shouldn't be able to select "no text" in the output windows
Status: STARTED
Alias: None
Product: cnd
Classification: Unclassified
Component: Terminalemulator (show other bugs)
Version: 6.x
Hardware: PC All
: P4 blocker (vote)
Assignee: ivan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-13 18:42 UTC by David-john Burrowes
Modified: 2014-11-24 08:53 UTC (History)
1 user (show)

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 David-john Burrowes 2002-03-13 18:42:00 UTC
At the moment, if there is nothing in the output window, I can select arbitrary regions of "whitespace" (but can not copy them, oddly)

I ought to be able to only select text or whitespace between characters on a line as with other text components.
Comment 1 ivan 2002-03-27 23:36:01 UTC
Unix termulators have a convention where the "space" from after
the last character til the right edge of the view is the "newline"
space. Usually if you make a selection and drag the mouse right
into that region the whole region gets selected. There's
significance to this in that if you paste that you'll
paste the newline as well.  Here are three examples:

	|A sentence.     |
select:  -----------		will paste "A sentence."

	|A sentence.     |
select:  ----------------	Will paste "A sentence.\n"

	|A sentence.     |
select:             -----	Will paste "\n"

The last one happens only if you selects the special "space" after
the ".". 
In view of this Term is specifically deficient as follows:
- It allows the third type of selection with _any_ click in the
  "newline region".
- The "newline" region is not selected (or given selection feedback)
  as a whole like in dtterm and xterm.

Then there is the issue of being to select below "the prompt" or
the last line. While I agree that it may look weird I'll point
out the following:
a That are usually quickly gets filled up with text, so there is 
  seldom an empty area. 
b Even if an area hasn't been filled by sending characters and 
  newline to the terminal it's still valid "canvas". In a sense
  you should think of the termulator as a big text array. 

Comment 2 David-john Burrowes 2002-03-28 00:10:49 UTC
I can understand the need/ability to select the character after the
last character in the buffer if there has been a newline written to
the output.

Case (a) may not always be true. Some programs (probably many Java
programs) generate little or no output at all.  So, in those cases it
is strange to be able to select "nothing" in this component.

I can't tell from your reply what fix you intend to make to this.  It
sounds like you will fix the selection in the stuff after the final
line, but continue to allow selection on the final line of text so one
can get the \n?


Comment 3 Marek Grummich 2002-07-22 08:49:41 UTC
Target milestone was changed from '3.4' to TBD.
Comment 4 Marek Grummich 2002-07-22 09:01:44 UTC
Target milestone was changed from '3.4' to TBD.
Comment 5 Marek Grummich 2002-07-22 09:13:44 UTC
Target milestone was changed from '3.4' to TBD.
Comment 6 Marek Grummich 2002-07-22 09:22:10 UTC
Target milestone was changed from '3.4' to TBD.