Added console
This commit is contained in:
parent
8595f2a09a
commit
4ac857da5b
|
@ -15,6 +15,7 @@ import { usePersistedState } from '@/plugins/usePersistedState';
|
|||
import { SocketEvent, SocketRequest } from '@/components/server/events';
|
||||
import classNames from 'classnames';
|
||||
import { ChevronDoubleRightIcon } from '@heroicons/react/solid';
|
||||
import NookConfig from '@/config';
|
||||
|
||||
import 'xterm/css/xterm.css';
|
||||
import styles from './style.module.css';
|
||||
|
@ -52,7 +53,7 @@ const terminalProps: ITerminalOptions = {
|
|||
};
|
||||
|
||||
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 terminal = useMemo(() => new Terminal({ ...terminalProps }), []);
|
||||
const fitAddon = new FitAddon();
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
export default {
|
||||
TERMINAL_PRELUDE: 'container@nookure~ ',
|
||||
};
|
Loading…
Reference in New Issue