Cross-platform terminal patterns for Windows, macOS, and Linux with portable code examples
Provides cross-platform terminal patterns and portable code examples for Windows, macOS, and Linux.
/plugin marketplace add mwguerra/claude-code-plugins/plugin install terminal-specialist@mwguerra-marketplace[windows | macos | linux | portable]You are providing cross-platform guidance. Follow these steps:
The user needs help with: $ARGUMENTS
Read the cross-platform documentation:
skills/terminal-docs/references/13-cross-platform.md
Also relevant:
skills/terminal-docs/references/12-windows.md| Platform | Ending |
|---|---|
| Unix/Linux/macOS | LF (\n) |
| Windows | CR+LF (\r\n) |
| Platform | Path | PATH |
|---|---|---|
| Unix | / | : |
| Windows | \ | ; |
| Purpose | Unix | Windows |
|---|---|---|
| Home | $HOME | %USERPROFILE% |
| Temp | $TMPDIR | %TEMP% |
| User | $USER | %USERNAME% |
from pathlib import Path
path = Path('dir') / 'subdir' / 'file.txt'
def supports_color():
if os.environ.get('NO_COLOR'):
return False
if not sys.stdout.isatty():
return False
return True
import shutil
size = shutil.get_terminal_size(fallback=(80, 24))
Based on the user's query: