Push to github
Some checks failed
Docker / Push (push) Has been cancelled
Some checks failed
Docker / Push (push) Has been cancelled
This commit is contained in:
parent
6a75caa68e
commit
52967b2874
12 changed files with 31 additions and 19 deletions
|
@ -53,7 +53,7 @@ const terminalProps: ITerminalOptions = {
|
|||
};
|
||||
|
||||
export default () => {
|
||||
const TERMINAL_PRELUDE = `\u001b[1m\u001b[38;2;153;0;255m${NookConfig.TERMINAL_PRELUDE} \u001b[0m`;
|
||||
const TERMINAL_PRELUDE = `\u001b[1m\u001b[38;2;255;0;47m${NookConfig.TERMINAL_PRELUDE}\u001b[0m`;
|
||||
const ref = useRef<HTMLDivElement>(null);
|
||||
const terminal = useMemo(() => new Terminal({ ...terminalProps }), []);
|
||||
const fitAddon = new FitAddon();
|
||||
|
@ -87,11 +87,12 @@ export default () => {
|
|||
|
||||
const handleDaemonErrorOutput = (line: string) =>
|
||||
terminal.writeln(
|
||||
'\u001b[1m\u001b[38;2;153;0;255m' + NookConfig.TERMINAL_PRELUDE + '\u001b[0m' +
|
||||
`\u001b[38;2;153;0;255m${NookConfig.TERMINAL_PRELUDE}\u001b[0m` +
|
||||
'\u001b[41m' + line.replace(/(?:\r\n|\r|\n)$/im, '') + '\u001b[0m'
|
||||
);
|
||||
|
||||
|
||||
|
||||
const handlePowerChangeEvent = (state: string) =>
|
||||
terminal.writeln(TERMINAL_PRELUDE + 'Server marked as ' + state + '...\u001b[0m');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue