Disable parsing attempts for 4/8 bits

This commit is contained in:
7cc5c4f330d47060 2024-08-23 10:52:50 -04:00
parent a473d15d4e
commit 5b4b7e8958
Signed by: 7cc5c4f330d47060
SSH key fingerprint: SHA256:e+4tcZut1nBpe10PqjaO+Rvie0Q7W4qIvFzcUw+7riA
2 changed files with 5 additions and 15 deletions

View file

@ -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)}`)

View file

@ -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":{