Disable parsing attempts for 4/8 bits
This commit is contained in:
parent
a473d15d4e
commit
5b4b7e8958
2 changed files with 5 additions and 15 deletions
|
@ -13,9 +13,7 @@ if (_consoleColors[settings.terminalMode]) {
|
|||
}
|
||||
|
||||
const hexColorParser = (color) => {
|
||||
if (!consoleColors24.enabled || consoleColors24.bit !== 24) { // Hex color parsing to the 8 bit and 4 bit modes has not been implemented yet
|
||||
return ''
|
||||
}
|
||||
if (!consoleColors24.enabled) return ''
|
||||
let out = '\x1B[0;'
|
||||
const redChannel = Number(`0x${color.slice(1, 3)}`)
|
||||
const greenChannel = Number(`0x${color.slice(3, 5)}`)
|
||||
|
|
|
@ -72,9 +72,7 @@
|
|||
"reset": "\u001B[0;38;5;15m"
|
||||
},
|
||||
"twentyFourBit":{
|
||||
"enabled": true,
|
||||
"bit": 8,
|
||||
"lightMode": false
|
||||
"enabled": false
|
||||
}
|
||||
},
|
||||
"whiteTerminal_8bit":{
|
||||
|
@ -98,9 +96,7 @@
|
|||
"reset": "\u001B[0;48;5;0;38;5;15m"
|
||||
},
|
||||
"twentyFourBit":{
|
||||
"enabled": true,
|
||||
"bit": 8,
|
||||
"lightMode": true
|
||||
"enabled": false
|
||||
}
|
||||
},
|
||||
"blackTerminal_4bit":{
|
||||
|
@ -124,9 +120,7 @@
|
|||
"reset": "\u001B[0;1;37m"
|
||||
},
|
||||
"twentyFourBit":{
|
||||
"enabled": true,
|
||||
"bit": 4,
|
||||
"lightMode": false
|
||||
"enabled": false
|
||||
}
|
||||
},
|
||||
"whiteTerminal_4bit":{
|
||||
|
@ -150,9 +144,7 @@
|
|||
"reset": "\u001B[0;40;1;37m"
|
||||
},
|
||||
"twentyFourBit":{
|
||||
"enabled": true,
|
||||
"bit": 4,
|
||||
"lightMode": true
|
||||
"enabled": false
|
||||
}
|
||||
},
|
||||
"none":{
|
||||
|
|
Loading…
Reference in a new issue