diff --git a/sandbox/.bashrc b/sandbox/.bashrc index 4fb5b61..949634e 100644 --- a/sandbox/.bashrc +++ b/sandbox/.bashrc @@ -1,8 +1,8 @@ #!/bin/bash # Custom prompt: user@project-name:relative-path -# Enable true color (24-bit) support for terminal -export TERM="${TERM:-xterm-direct}" +# Enable 256 color support for terminal +export TERM="${TERM:-xterm-256color}" export COLORTERM="${COLORTERM:-truecolor}" PROJECT_NAME="${PROJECT_NAME:-sandbox}" diff --git a/sandbox/Dockerfile b/sandbox/Dockerfile index b72fc62..457fea4 100644 --- a/sandbox/Dockerfile +++ b/sandbox/Dockerfile @@ -21,7 +21,7 @@ ENV DEBIAN_FRONTEND=noninteractive \ NODE_VERSION=22.x \ CLAUDE_CODE_VERSION=latest \ PATH="/root/.local/bin:/home/agent/.local/bin:$PATH" \ - TERM=xterm-direct \ + TERM=xterm-256color \ COLORTERM=truecolor \ ANTHROPIC_BASE_URL="" \ ANTHROPIC_AUTH_TOKEN="" \ diff --git a/sandbox/entrypoint.sh b/sandbox/entrypoint.sh index cb3a640..fa891e7 100755 --- a/sandbox/entrypoint.sh +++ b/sandbox/entrypoint.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Start ttyd with true color support -# -T: Set terminal type to xterm-direct (supports 24-bit true color) +# Start ttyd with 256 color support +# -T: Set terminal type to xterm-256color (widely supported) # -W: Enable websocket compression -ttyd -T xterm-direct -W bash +ttyd -T xterm-256color -W bash