update files

This commit is contained in:
nuintun
2015-11-26 10:53:50 +08:00
parent f763bf9759
commit ef1690ae5f
12 changed files with 130 additions and 35 deletions

View File

@@ -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;

View File

@@ -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:

View File

@@ -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