This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Copy and Paste into Console


" From: Gary R. Van Sickle [mailto:g.r.vansickle@worldnet.att.net] 
" > From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com]On 
" > 2) Why does "paste-from-clipboard" stop just before the first
newline 
" > in the clipboard contents while middle-mouse pastes the entire 
" > contents? Is there another undocumented clipboard pasting readline 
" > primitive that pastes the entire clipboard? (Running strings on 
" > /lib/libreadline.a suggests there is not.) Is this a bug, or
intended 
" > behavior?
"
" I have absolutely no idea.  Wasn't there when it happened ;-).

Random speculation.

Paste-from-clipboard is a read-line function.  Being line-oriented, it's
perhaps even by design that it opens the clipboard, gets only one line
from it, and inserts that into the editing buffer.

Middle-mouse, on the other hand, is producing a stream of input events
for the window being pasted to.  The app being pasted to doesn't know
the difference between middle-mouse and a user typing really fast.

> Randall Schulz
> Mountain View, CA USA

Gary R. Van Sickle
Brewer.  Patriot.

stephan();
Geek.  Nerd. :-)

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]