From dda01a9a49df411087ec47427765ae0b6450a034 Mon Sep 17 00:00:00 2001 From: Atridad Lahiji Date: Mon, 19 May 2025 22:22:04 -0600 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=F0=9F=91=80=E2=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Terminal.tsx | 30 +++++++++++++++--------------- src/pages/secret-terminal.astro | 2 +- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/components/Terminal.tsx b/src/components/Terminal.tsx index b9b32c3..f211a9f 100644 --- a/src/components/Terminal.tsx +++ b/src/components/Terminal.tsx @@ -108,7 +108,7 @@ ALERT_COLOR=#FF0000 const prompt = () => { if (xtermRef.current) { - xtermRef.current.write(`\r\nroot@ixabatasha:${currentPath.current}# `); + xtermRef.current.write(`\r\nroot@ixabatasha.life:${currentPath.current}# `); } }; @@ -204,17 +204,17 @@ ALERT_COLOR=#FF0000 case 'help': // Display available commands and tips const helpText = - "Available Commands:\n" + - " ls List directory contents\n" + - " cd Change directory\n" + - " cat Display file contents\n" + - " clear Clear the screen\n" + - " help Display this help message\n\n" + - "Tips:\n" + - "- Use Tab for command/path completion\n" + - "- Up/Down arrows navigate command history\n" + - "- Type 'cat /usr/bin/common_commands.txt' for more system information\n" + - "- Read the README.txt for mission details"; + "Available Commands:\r\n" + + " ls List directory contents\r\n" + + " cd Change directory\r\n" + + " cat Display file contents\r\n" + + " clear Clear the screen\r\n" + + " help Display this help message\r\n\r\n" + + "Tips:\r\n" + + " - Use Tab for command/path completion\r\n" + + " - Up/Down arrows navigate command history\r\n" + + " - Type 'cat /usr/bin/common_commands.txt' for more system information\r\n" + + " - Read the README.txt for mission details"; xtermRef.current.write('\r\n' + helpText); break; @@ -277,7 +277,7 @@ ALERT_COLOR=#FF0000 historyIndex.current--; // Clear current line and write prompt + history item xtermRef.current.write('\x1b[2K\r'); - xtermRef.current.write(`root@ixabatasha:${currentPath.current}# `); + xtermRef.current.write(`root@ixabatasha.life.life:${currentPath.current}# `); xtermRef.current.write(commandHistory.current[historyIndex.current]); currentLine.current = commandHistory.current[historyIndex.current]; } @@ -286,14 +286,14 @@ ALERT_COLOR=#FF0000 historyIndex.current++; // Clear current line and write prompt + history item xtermRef.current.write('\x1b[2K\r'); - xtermRef.current.write(`root@ixabatasha:${currentPath.current}# `); + xtermRef.current.write(`root@ixabatasha.life.life:${currentPath.current}# `); xtermRef.current.write(commandHistory.current[historyIndex.current]); currentLine.current = commandHistory.current[historyIndex.current]; } else if (historyIndex.current === commandHistory.current.length - 1) { historyIndex.current++; // Clear current line and write just the prompt xtermRef.current.write('\x1b[2K\r'); - xtermRef.current.write(`root@ixabatasha:${currentPath.current}# `); + xtermRef.current.write(`root@ixabatasha.life.life:${currentPath.current}# `); currentLine.current = ""; } } else if (domEvent.key === 'Tab') { diff --git a/src/pages/secret-terminal.astro b/src/pages/secret-terminal.astro index e2b717b..fd10eae 100644 --- a/src/pages/secret-terminal.astro +++ b/src/pages/secret-terminal.astro @@ -1,6 +1,6 @@ --- import TerminalComponent from '../components/Terminal.tsx'; -const title = "Secret Terminal"; +const title = "root@ixabatasha.life"; /* Escape Room Terminal Puzzle