Bug 21577 - Shouldn't be able to select "no text" in the output windows
Shouldn't be able to select "no text" in the output windows
Status: STARTED
Product: cnd
Classification: Unclassified
Component: Terminalemulator
6.x
PC All
: P4 (vote)
: TBD
Assigned To: ivan
ivan
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2002-03-13 18:42 UTC by David-john Burrowes
Modified: 2008-10-22 08:30 UTC (History)
0 users

See Also:
Issue Type: DEFECT
:


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.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo