mirror of
https://github.com/SikongJueluo/cc-utils.git
synced 2025-11-05 03:37:50 +08:00
try to wordwrap, but failed
This commit is contained in:
@@ -332,8 +332,9 @@ function drawNode(
|
||||
? node.textContent()
|
||||
: node.textContent;
|
||||
|
||||
term.setTextColor(textColor ?? colors.white);
|
||||
term.setBackgroundColor(bgColor ?? colors.black);
|
||||
if (bgColor !== undefined) {
|
||||
term.setBackgroundColor(bgColor);
|
||||
}
|
||||
term.setCursorPos(x, y);
|
||||
term.write(text.substring(0, width));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user