mirror of
https://github.com/MeexReay/poshlostios.git
synced 2025-06-24 18:42:59 +03:00
fix update terminal
This commit is contained in:
parent
a8a72351b4
commit
b9522bdf47
@ -36,6 +36,10 @@ function trimTerminal(length) {
|
|||||||
updateTerminal()
|
updateTerminal()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getStrippedTerminal() {
|
||||||
|
return stripColors(getTerminal())
|
||||||
|
}
|
||||||
|
|
||||||
function getTerminal() {
|
function getTerminal() {
|
||||||
return terminal_text
|
return terminal_text
|
||||||
}
|
}
|
||||||
@ -54,9 +58,10 @@ function updateTerminalWOCursor() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function updateTerminal() {
|
function updateTerminal() {
|
||||||
|
let stripped_terminal = getStrippedTerminal()
|
||||||
setCursor(
|
setCursor(
|
||||||
terminal_text.split("\n").reverse()[0].length,
|
stripped_terminal.split("\n").reverse()[0].length,
|
||||||
terminal_text.split("\n").length-1
|
stripped_terminal.split("\n").length-1
|
||||||
)
|
)
|
||||||
updateTerminalWOCursor()
|
updateTerminalWOCursor()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user