mirror of
https://github.com/nuintun/command-manager.git
synced 2025-06-29 19:42:45 +08:00
update files
This commit is contained in:
parent
e2eb029f5a
commit
25b1109af7
@ -14,6 +14,10 @@ module.exports = function (Terminal){
|
|||||||
this.cursorState = 1;
|
this.cursorState = 1;
|
||||||
|
|
||||||
this.refresh(this.y, this.y);
|
this.refresh(this.y, this.y);
|
||||||
|
|
||||||
|
if (this.cursorBlink && this._blink && this._blinker) {
|
||||||
|
this._blink = setInterval(this._blinker, this.cursorBlinkSpeed);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -28,8 +32,10 @@ module.exports = function (Terminal){
|
|||||||
|
|
||||||
clearInterval(this._blink);
|
clearInterval(this._blink);
|
||||||
|
|
||||||
delete this._blink;
|
if (!this.cursorBlink) {
|
||||||
delete this._blinker;
|
delete this._blink;
|
||||||
|
delete this._blinker;
|
||||||
|
}
|
||||||
|
|
||||||
this.refresh(this.y, this.y);
|
this.refresh(this.y, this.y);
|
||||||
}
|
}
|
||||||
@ -39,7 +45,7 @@ module.exports = function (Terminal){
|
|||||||
* startBlink
|
* startBlink
|
||||||
*/
|
*/
|
||||||
Terminal.prototype.startBlink = function (){
|
Terminal.prototype.startBlink = function (){
|
||||||
if (this.cursor && this.cursorBlink && Terminal.focus === this) {
|
if (this.cursor && this._cursor && this.cursorBlink && Terminal.focus === this) {
|
||||||
var context = this;
|
var context = this;
|
||||||
|
|
||||||
clearInterval(this._blink);
|
clearInterval(this._blink);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user