Skip to content

Commit 2534761

Browse files
authored
fix(terminal): enhance debug message formatting in temporary terminal (#6321)
Signed-off-by: zzjin <tczzjin@gmail.com>
1 parent 2773e4f commit 2534761

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • frontend/providers/terminal/src/components/terminal

frontend/providers/terminal/src/components/terminal/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function Terminal({ url, site }: { url: string; site: string }) {
4848
);
4949
iframeRef.current?.contentWindow?.postMessage(
5050
{
51-
command: `echo -e "This is a temporary terminal for debugging and testing. The session will automatically end 30 minutes after you leave.\\n\\nYou are now working in: namespace ${nsid}" && history -c`
51+
command: `clear && echo -e "\\033[36mThis is a temporary terminal for debugging and testing. The session will automatically end \\033[1m30 minutes\\033[22m after you leave.\\033[0m\\n\\nYou are now working in namespace: \\033[1;32m${nsid}\\033[0m" && history -c`
5252
},
5353
url
5454
);

0 commit comments

Comments
 (0)