mirror of
https://github.com/nuintun/command-manager.git
synced 2025-10-20 09:51:31 +08:00
update files
This commit is contained in:
@@ -5,6 +5,13 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = function (Terminal){
|
||||
/**
|
||||
* matchColor
|
||||
* @param r1
|
||||
* @param g1
|
||||
* @param b1
|
||||
* @returns {*}
|
||||
*/
|
||||
function matchColor(r1, g1, b1){
|
||||
var hash = (r1 << 16) | (g1 << 8) | b1;
|
||||
|
||||
|
@@ -189,7 +189,9 @@ module.exports = function (Terminal){
|
||||
break;
|
||||
// show cursor
|
||||
case 25:
|
||||
this.cursorHidden = false;
|
||||
this.cursor = true;
|
||||
|
||||
this.showCursor();
|
||||
break;
|
||||
// alt screen buffer cursor
|
||||
case 1049:
|
||||
@@ -382,7 +384,9 @@ module.exports = function (Terminal){
|
||||
break;
|
||||
// hide cursor
|
||||
case 25:
|
||||
this.cursorHidden = true;
|
||||
this.cursor = false;
|
||||
|
||||
this.hideCursor();
|
||||
break;
|
||||
// alt screen buffer cursor
|
||||
case 1049:
|
||||
|
@@ -8,7 +8,6 @@ module.exports = function (Terminal){
|
||||
// CSI ! p Soft terminal reset (DECSTR).
|
||||
// http://vt100.net/docs/vt220-rm/table4-10.html
|
||||
Terminal.prototype.softReset = function (){
|
||||
this.cursorHidden = false;
|
||||
this.insertMode = false;
|
||||
this.originMode = false;
|
||||
// autowrap
|
||||
|
Reference in New Issue
Block a user