]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - window.c
Selection now supported in pterm. Required small modifications
[PuTTY.git] / window.c
index 59757d91fdf10c1d3a1765f7c7486bd71911f34f..a4a376bbae322353b3b1297c1c358b2573c591f8 100644 (file)
--- a/window.c
+++ b/window.c
@@ -3817,6 +3817,16 @@ static int TranslateKey(UINT message, WPARAM wParam, LPARAM lParam,
     return -1;
 }
 
+void request_paste(void)
+{
+    /*
+     * In Windows, pasting is synchronous: we can read the
+     * clipboard with no difficulty, so request_paste() can just go
+     * ahead and paste.
+     */
+    term_do_paste();
+}
+
 void set_title(char *title)
 {
     sfree(window_name);