This is the mail archive of the 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 [] 
" > From: []On 
" > 2) Why does "paste-from-clipboard" stop just before the first
" > 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
" > 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.

Geek.  Nerd. :-)

Unsubscribe info:
Bug reporting:

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