Added console

This commit is contained in:
Angelillo15 2023-08-04 23:53:40 +02:00
parent 8595f2a09a
commit 4ac857da5b
2 changed files with 5 additions and 1 deletions

View File

@ -15,6 +15,7 @@ import { usePersistedState } from '@/plugins/usePersistedState';
import { SocketEvent, SocketRequest } from '@/components/server/events'; import { SocketEvent, SocketRequest } from '@/components/server/events';
import classNames from 'classnames'; import classNames from 'classnames';
import { ChevronDoubleRightIcon } from '@heroicons/react/solid'; import { ChevronDoubleRightIcon } from '@heroicons/react/solid';
import NookConfig from '@/config';
import 'xterm/css/xterm.css'; import 'xterm/css/xterm.css';
import styles from './style.module.css'; import styles from './style.module.css';
@ -52,7 +53,7 @@ const terminalProps: ITerminalOptions = {
}; };
export default () => { export default () => {
const TERMINAL_PRELUDE = '\u001b[1m\u001b[33mcontainer@pterodactyl~ \u001b[0m'; const TERMINAL_PRELUDE = `\u001b[1m\u001b[33m${NookConfig.TERMINAL_PRELUDE} \u001b[0m`;
const ref = useRef<HTMLDivElement>(null); const ref = useRef<HTMLDivElement>(null);
const terminal = useMemo(() => new Terminal({ ...terminalProps }), []); const terminal = useMemo(() => new Terminal({ ...terminalProps }), []);
const fitAddon = new FitAddon(); const fitAddon = new FitAddon();

View File

@ -0,0 +1,3 @@
export default {
TERMINAL_PRELUDE: 'container@nookure~ ',
};