Standard escape codes are prefixed with Escape
:
- Ctrl-Key:
^[
- Octal:
\033
- Unicode:
\u001b
- Hexadecimal:
\x1B
- Decimal:
27
#!/usr/bin/env zx | |
const fs = require('fs') | |
async function getCurrentVersion() { | |
let version; | |
try { | |
version = await $`/Applications/Chromium.app/Contents/MacOS/Chromium --version` | |
} catch (e) { |