mirror of
https://github.com/MeexReay/poshlostios.git
synced 2025-06-24 18:42:59 +03:00
chevo
This commit is contained in:
parent
e4b3b17528
commit
f7ce6cd869
@ -73,7 +73,12 @@ async function main(args) {
|
|||||||
} else if (event.type == "char") {
|
} else if (event.type == "char") {
|
||||||
if (mode == "normal") {
|
if (mode == "normal") {
|
||||||
if (event.char == ":") {
|
if (event.char == ":") {
|
||||||
|
console.log(status_length)
|
||||||
|
|
||||||
trimTerminal(status_length)
|
trimTerminal(status_length)
|
||||||
|
|
||||||
|
console.log(getTerminal())
|
||||||
|
|
||||||
writeStdout(":")
|
writeStdout(":")
|
||||||
|
|
||||||
let command = await readLine()
|
let command = await readLine()
|
||||||
|
@ -102,8 +102,8 @@ function stripColors(content) {
|
|||||||
function convertColorCodes(input) {
|
function convertColorCodes(input) {
|
||||||
return input.replace(/\$#([0-9a-fA-F]{6})/g, '<span style="color: #$1">')
|
return input.replace(/\$#([0-9a-fA-F]{6})/g, '<span style="color: #$1">')
|
||||||
.replace(/\$##([0-9a-fA-F]{6})/g, '$#$1')
|
.replace(/\$##([0-9a-fA-F]{6})/g, '$#$1')
|
||||||
.replace(/\$([A-Z_]+)/g, '<span style="color: --$1">')
|
.replace(/\$([A-Z_]+)--/g, '<span style="color: --$1">')
|
||||||
.replace(/\$#([A-Z_]+)/g, '$$$1')
|
.replace(/\$#([A-Z_]+)--/g, '$$$1--')
|
||||||
.replace(/\$reset/g, '</span>')
|
.replace(/\$reset/g, '</span>')
|
||||||
.replace(/\$#reset/g, '$reset');
|
.replace(/\$#reset/g, '$reset');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user