Temporary terminal palette wrapper for Codex.
codex-hacker starts a Codex session after switching the terminal to a black background with green text and a matching ANSI palette. When the script exits, it asks the terminal to restore the default foreground and background colors.
This is only temporary. It is a small convenience script, not a polished or permanent tool.
Tested on WSL2 Ubuntu.
- Bash
- Codex CLI available as
codex - A terminal that supports OSC color escape sequences
chmod +x codex-hacker
./codex-hackerArguments are passed through to Codex:
./codex-hacker --helpTerminal support varies. If a terminal ignores OSC palette changes, the script may still run Codex but may not change all colors.