MCPcopy
hub / github.com/csev/py4e / restartBlink

Function restartBlink

tools/pythonauto/static/codemirrorepl/codemirror.js:1349–1359  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

1347
1348 // Cursor-blinking
1349 function restartBlink(cm) {
1350 if (!cm.state.focused) return;
1351 var display = cm.display;
1352 clearInterval(display.blinker);
1353 var on = true;
1354 display.cursorDiv.style.visibility = "";
1355 if (cm.options.cursorBlinkRate > 0)
1356 display.blinker = setInterval(function() {
1357 display.cursorDiv.style.visibility = (on = !on) ? "" : "hidden";
1358 }, cm.options.cursorBlinkRate);
1359 }
1360
1361 // HIGHLIGHT WORKER
1362

Callers 4

endOperationFunction · 0.70
handleKeyBindingFunction · 0.70
handleCharBindingFunction · 0.70
onFocusFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected