[haiku-bugs] Re: [Haiku] #7997: Selecting a large range of text within terminal, then right-clicking on selected text locks up the terminal application.

  • From: "siarzhuk" <trac@xxxxxxxxxxxx>
  • Date: Tue, 31 Jan 2012 21:12:09 -0000

#7997: Selecting a large range of text within terminal, then right-clicking on
selected text locks up the terminal application.
-------------------------------------+------------------------
   Reporter:  frankenburps           |      Owner:  jackburton
       Type:  bug                    |     Status:  new
   Priority:  normal                 |  Milestone:  R1
  Component:  Applications/Terminal  |    Version:  R1/alpha3
 Resolution:                         |   Keywords:  gci2011
 Blocked By:                         |   Blocking:
Has a Patch:  0                      |   Platform:  All
-------------------------------------+------------------------

Comment (by siarzhuk):

 JFYI: That looks like the concurrency problem in our pty
 implementation:[[BR]]
 a) '''Selecting the the text''' in terminal '''automatically copy the
 selection into the clipboard''';[[BR]]
 b) Pressing either '''middle or right button inserts''' current text
 '''from the clipboard into the Terminal''';[[BR]]
 c) Terminal writes all those strings at once - and it looks like the app
 is blocked because of some reasons the text doesn't displayed on the
 screen;[[BR]]
 d) Anyway at some time the TermParse::PtyReader become "Bad file
 descriptor" error on the next attempt to read and is forced to exit with
 NotifyQuit() call.

 From the other side: What sense to paste those thousands of lines into the
 Terminal? Note that they are interpreted as usual CLI commands and shell
 attempts to run them immediately and produce error messages. May be
 pasting should be blocked for any multilined contents?

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/7997#comment:6>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: