From e88380022f1bf5d01b98781919c0204c1e698c80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net> Date: Thu, 29 Dec 2022 13:07:26 -0500 Subject: [PATCH] Use the new console.flush() method. This speeds up the display immensely without distracting artifacts (yay!) --- exec/syncterm-bounce.js | 1 + 1 file changed, 1 insertion(+) diff --git a/exec/syncterm-bounce.js b/exec/syncterm-bounce.js index 966f11614f..9abd18e42f 100644 --- a/exec/syncterm-bounce.js +++ b/exec/syncterm-bounce.js @@ -264,6 +264,7 @@ else { w('\x1b_SyncTERM:P;Paste;SX='+(pos.x - 4)+';SY='+(pos.y - 4)+';SW='+(imgdim.width + 8)+';SH='+(imgdim.height + 8)+';DX='+(pos.x - 4)+';DY='+(pos.y - 4)+';MBUF;MY=64\x1b\\'); remain = 10; // Minimum wait... will likely be longer though. while (console.output_buffer_level) { + console.flush(); mswait(1); remain--; } -- GitLab