Tweak blink rate.
This commit is contained in:
@ -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%';
|
||||||
|
|||||||
Reference in New Issue
Block a user