Add setSyncTermFontWithAlias()
This commit is contained in:
parent
4346b44ae8
commit
b0930a3b7e
|
@ -30,6 +30,7 @@ exports.goHome = goHome;
|
||||||
exports.disableVT100LineWrapping = disableVT100LineWrapping;
|
exports.disableVT100LineWrapping = disableVT100LineWrapping;
|
||||||
exports.setSyncTERMFont = setSyncTERMFont;
|
exports.setSyncTERMFont = setSyncTERMFont;
|
||||||
exports.getSyncTERMFontFromAlias = getSyncTERMFontFromAlias;
|
exports.getSyncTERMFontFromAlias = getSyncTERMFontFromAlias;
|
||||||
|
exports.setSyncTermFontWithAlias = setSyncTermFontWithAlias;
|
||||||
exports.setCursorStyle = setCursorStyle;
|
exports.setCursorStyle = setCursorStyle;
|
||||||
exports.setEmulatedBaudRate = setEmulatedBaudRate;
|
exports.setEmulatedBaudRate = setEmulatedBaudRate;
|
||||||
|
|
||||||
|
@ -299,6 +300,11 @@ function getSyncTERMFontFromAlias(alias) {
|
||||||
return FONT_ALIAS_TO_SYNCTERM_MAP[alias.toLowerCase().replace(/ /g, '_')];
|
return FONT_ALIAS_TO_SYNCTERM_MAP[alias.toLowerCase().replace(/ /g, '_')];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function setSyncTermFontWithAlias(nameOrAlias) {
|
||||||
|
nameOrAlias = getSyncTERMFontFromAlias(nameOrAlias) || nameOrAlias;
|
||||||
|
return setSyncTERMFont(nameOrAlias);
|
||||||
|
}
|
||||||
|
|
||||||
const DEC_CURSOR_STYLE = {
|
const DEC_CURSOR_STYLE = {
|
||||||
'blinking block' : 0,
|
'blinking block' : 0,
|
||||||
'default' : 1,
|
'default' : 1,
|
||||||
|
|
Loading…
Reference in New Issue