]> asedeno.scripts.mit.edu Git - PuTTY_svn.git/commit
Revamp the terminal paste mechanism using toplevel callbacks.
authorSimon Tatham <anakin@pobox.com>
Sat, 17 Aug 2013 16:06:12 +0000 (16:06 +0000)
committerSimon Tatham <anakin@pobox.com>
Sat, 17 Aug 2013 16:06:12 +0000 (16:06 +0000)
commit310835f6df5fa118dd8e9a248bcc57b92e889303
tree3cbbeb24a3131925a0a552357b825e97b205b8cc
parent3d31dde9e7148d36fd9d330120ed8d0b7b241c9e
Revamp the terminal paste mechanism using toplevel callbacks.

I've removed the ad-hoc front-end bodgery in the Windows and GTK ports
to arrange for term_paste to be called at the right moments, and
instead, terminal.c itself deals with knowing when to send the next
chunk of pasted data using a combination of timers and the new
top-level callback mechanism.

As a happy side effect, it's now all in one place so I can actually
understand what it's doing! It turns out that what all that confusing
code was up to is: send a line of pasted data, and delay sending the
next line until either a CR or LF is returned from the server
(typically indicating that the pasted text has been received and
echoed) or 450ms elapse, whichever comes first.

git-svn-id: http://svn.tartarus.org/sgt/putty@10020 cda61777-01e9-0310-a592-d414129be87e
putty.h
terminal.c
terminal.h
unix/gtkwin.c
windows/window.c