simon-svn: putty: simon
Commits to Tartarus CVS repository.
tartarus-commits at lists.tartarus.org
Sat Aug 17 17:06:13 BST 2013
SVN root: svn://svn.tartarus.org/sgt
Changes by: simon
Revision: 10020
Date: 2013-08-17 17:06:12 +0100 (Sat, 17 Aug 2013)
Log message (14 lines):
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.
Modified files:
U putty/putty.h
U putty/terminal.c
U putty/terminal.h
U putty/unix/gtkwin.c
U putty/windows/window.c
Links:
http://svn.tartarus.org/sgt/?rev=10020&view=rev
http://svn.tartarus.org/sgt/putty/putty.h?rev=10020&r1=10019&r2=10020
http://svn.tartarus.org/sgt/putty/terminal.c?rev=10020&r1=10019&r2=10020
http://svn.tartarus.org/sgt/putty/terminal.h?rev=10020&r1=10019&r2=10020
http://svn.tartarus.org/sgt/putty/unix/gtkwin.c?rev=10020&r1=10019&r2=10020
http://svn.tartarus.org/sgt/putty/windows/window.c?rev=10020&r1=10019&r2=10020
More information about the tartarus-commits
mailing list