Tweak blink rate.

This commit is contained in:
Brad Nelson
2022-08-12 13:41:38 -07:00
parent 2f75fd7ae0
commit b1612c116b

View File

@ -69,14 +69,14 @@ if (!globalObj.write) {
setInterval(function() { setInterval(function() {
if (context.cursor) { if (context.cursor) {
var now = new Date().getTime(); var now = new Date().getTime();
var state = Math.floor((now - context.cursor_time) / 300) % 2; var state = Math.floor((now - context.cursor_time) / 250) % 2;
if (state) { if (state) {
context.cursor.style.visibility = 'hidden'; context.cursor.style.visibility = 'hidden';
} else { } else {
context.cursor.style.visibility = 'visible'; context.cursor.style.visibility = 'visible';
} }
} }
}, 100); }, 50);
context.terminal = document.createElement('div'); context.terminal = document.createElement('div');
context.terminal.style.width = '100%'; context.terminal.style.width = '100%';