mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-08-02 07:51:52 +02:00
* Some work on cursor hiding while redrawing. WIP.
This commit is contained in:
parent
10d8812300
commit
75bb9e91e4
6 changed files with 48 additions and 9 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue