* Some work on cursor hiding while redrawing. WIP.

This commit is contained in:
Bryan Ashby 2015-04-27 20:19:17 -06:00
parent 10d8812300
commit 75bb9e91e4
6 changed files with 48 additions and 9 deletions

View file

@ -26,6 +26,7 @@ exports.goHome = goHome;
exports.disableVT100LineWrapping = disableVT100LineWrapping;
exports.setSyncTERMFont = setSyncTERMFont;
exports.getSyncTERMFontFromAlias = getSyncTERMFontFromAlias;
exports.setCursorStyle = setCursorStyle;
exports.fromPipeCode = fromPipeCode;
@ -247,6 +248,25 @@ function getSyncTERMFontFromAlias(alias) {
return FONT_ALIAS_TO_SYNCTERM_MAP[alias.toLowerCase().replace(/ /g, '_')];
}
var DEC_CURSOR_STYLE = {
'blinking block' : 0,
'default' : 1,
'steady block' : 2,
'blinking underline' : 3,
'steady underline' : 4,
'blinking bar' : 5,
'steady bar' : 6,
};
function setCursorStyle(cursorStyle) {
var ps = DEC_CURSOR_STYLE[cursorStyle];
if(ps) {
return ESC_CSI + ps + ' q';
}
return '';
}
/*
var FONT_MAP = {