]> git.proxmox.com Git - mirror_xterm.js.git/commit
Allow refresh to execute 30 times a second maximum
authorDaniel Imms <daimms@microsoft.com>
Mon, 13 Jun 2016 19:37:16 +0000 (12:37 -0700)
committerDaniel Imms <daimms@microsoft.com>
Mon, 13 Jun 2016 19:40:56 +0000 (12:40 -0700)
commitaf29effbf3f743eb35c15980c25192cb4e59ba27
treec23859bc0d7ccb7cce74c8b466de58970e042a9d
parent9d34ed8781b2993dd209aca02d5ff9ab98d4a9b9
Allow refresh to execute 30 times a second maximum

For commands that pass a significant amount of output to the write function,
this prevents the terminal maxing out the CPU and making the UI unresponsive.
While commands can still run beyond what they do on the terminal, it is far
better with a debounce in place as every single terminal manipulation does not
need to be constructed in the DOM.

A side-effect of this is that it makes ^C to interrupt a process seem more
responsive.

Fixes #127
Fixes #126
src/xterm.js