update files

This commit is contained in:
nuintun
2015-11-25 16:24:45 +08:00
parent 21b15e8a2f
commit 1efef2d5bc
3 changed files with 4 additions and 10 deletions

View File

@@ -6,10 +6,6 @@
var states = require('./states');
function fixLinefeed(data){
return data.replace(/([^\r])\n/g, '$1\r\n');
}
module.exports = function (Terminal){
Terminal.prototype.send = function (data){
var context = this;
@@ -44,8 +40,6 @@ module.exports = function (Terminal){
};
Terminal.prototype.write = function (data){
data = fixLinefeed(data);
var l = data.length;
var i = 0;
var ch = null;