@bastani/atomic 0.10.14 → 0.10.15-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/dist/_shared/dist-KOELCESV.js +2 -2
- package/dist/_shared/fork-row-index-UAUAQRD5.js +2 -2
- package/dist/_shared/lib-4PES5P4V.js +2 -2
- package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js +3 -3
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +3 -3
- package/dist/_shared/mode-shared-2QJSCUM6.js +3 -3
- package/dist/_shared/p1a-prewarm-XIU57JHF.js +3 -3
- package/dist/_shared/runtime-O4KCSG4C.js +2 -2
- package/dist/_shared/{sdk-B5LEWGGI.js → sdk-OHKMDJ74.js} +27 -5
- package/dist/_shared/{sdk-B5LEWGGI.js.map → sdk-OHKMDJ74.js.map} +1 -1
- package/dist/_shared/session-data-AHTU7IS6.js +2 -2
- package/dist/_shared/startup-0-0-Q3MWKUK4.js +2 -2
- package/dist/_shared/startup-0-1-M6OWAYHH.js +2 -2
- package/dist/_shared/{startup-0-2-5QHPCEON.js → startup-0-2-2HUMCPKX.js} +14 -16
- package/dist/_shared/startup-0-2-2HUMCPKX.js.map +1 -0
- package/dist/_shared/startup-0-3-4ZYBYQNM.js +3 -3
- package/dist/_shared/startup-0-4-ZMJV547D.js +3 -3
- package/dist/_shared/startup-0-5-YDW47QX6.js +3 -3
- package/dist/_shared/startup-10-0-TDQNBDDL.js +3 -3
- package/dist/_shared/startup-14-0-MLX36RBG.js +1 -1
- package/dist/_shared/startup-15-0-YUKGAC63.js +1 -1
- package/dist/_shared/startup-15-1-4S7FLMNG.js +6 -30
- package/dist/_shared/startup-15-1-4S7FLMNG.js.map +1 -1
- package/dist/_shared/startup-8-0-34CBHPZH.js +3 -3
- package/dist/_shared/startup-8-1-LZFXSD3Z.js +3 -3
- package/dist/_shared/storage-command-7MGXLJGZ.js +2 -2
- package/dist/_shared/storage-status-K7PX2RXA.js +3 -3
- package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
- package/dist/_shared/tree-outline-MUEPK5B7.js +2 -2
- package/dist/builtin/intercom/index.bundle.mjs +1 -1
- package/dist/builtin/intercom/package.json +1 -1
- package/dist/builtin/mcp/index.bundle.mjs +1 -1
- package/dist/builtin/mcp/package.json +1 -1
- package/dist/builtin/subagents/package.json +1 -1
- package/dist/builtin/subagents/src/extension/index.bundle.mjs +1 -1
- package/dist/builtin/web-access/index.bundle.mjs +1 -1
- package/dist/builtin/web-access/package.json +1 -1
- package/dist/cli/auth-cli.code.js +1 -1
- package/dist/cli/auth-cli.impl.js +3 -3
- package/dist/cli/auth-cli.js +3 -3
- package/dist/cli/blueprint-command.impl.js +3 -3
- package/dist/cli/blueprint-command.js +3 -3
- package/dist/cli/intercom-command.code.js +3 -3
- package/dist/cli/intercom-command.impl.js +3 -3
- package/dist/cli/intercom-command.js +3 -3
- package/dist/cli/list-models.impl.js +3 -3
- package/dist/cli/list-models.js +3 -3
- package/dist/cli/session-picker.code.js +1 -1
- package/dist/cli/session-picker.impl.js +3 -3
- package/dist/cli/session-picker.js +3 -3
- package/dist/cli/startup-ui.code.js +1 -1
- package/dist/cli/startup-ui.impl.js +3 -3
- package/dist/cli/startup-ui.js +3 -3
- package/dist/cli/storage-command.impl.js +3 -3
- package/dist/cli/storage-command.js +3 -3
- package/dist/cli/storage-search-session.code.js +1 -1
- package/dist/cli/storage-search-session.impl.js +3 -3
- package/dist/cli/storage-search-session.js +3 -3
- package/dist/cli/team-command.code.js +1 -1
- package/dist/cli/team-command.impl.js +3 -3
- package/dist/cli/team-command.js +3 -3
- package/dist/cli.js +2 -2
- package/dist/core/compaction/compactor.d.ts +0 -8
- package/dist/core/debug.impl.js +3 -3
- package/dist/core/debug.js +3 -3
- package/dist/core/export-html/card-projection.impl.js +3 -3
- package/dist/core/export-html/card-projection.js +3 -3
- package/dist/core/export-html/index.code.js +2 -2
- package/dist/core/export-html/index.impl.js +3 -3
- package/dist/core/export-html/index.js +3 -3
- package/dist/core/export-html/json-spans.impl.js +3 -3
- package/dist/core/export-html/json-spans.js +3 -3
- package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
- package/dist/core/export-html/oversized-render-inputs.js +3 -3
- package/dist/core/export-html/tool-renderer.impl.js +3 -3
- package/dist/core/export-html/tool-renderer.js +3 -3
- package/dist/core/extensions/jiti-loader.impl.js +3 -3
- package/dist/core/extensions/jiti-loader.js +3 -3
- package/dist/core/extensions/jiti-static-loader.impl.js +3 -3
- package/dist/core/extensions/jiti-static-loader.js +3 -3
- package/dist/core/extensions/loader-host-modules.impl.js +3 -3
- package/dist/core/extensions/loader-host-modules.js +3 -3
- package/dist/core/intercom-broker-control-host.code.js +1 -1
- package/dist/core/intercom-broker-control-host.impl.js +3 -3
- package/dist/core/intercom-broker-control-host.js +3 -3
- package/dist/core/intercom-broker-control.code.js +2 -2
- package/dist/core/intercom-broker-control.impl.js +3 -3
- package/dist/core/intercom-broker-control.js +3 -3
- package/dist/core/package-manager-storage-adapters.impl.js +3 -3
- package/dist/core/package-manager-storage-adapters.js +3 -3
- package/dist/core/sdk.code.js +1 -1
- package/dist/core/sdk.impl.js +3 -3
- package/dist/core/sdk.js +3 -3
- package/dist/core/session-manager-core.js +3 -3
- package/dist/core/session-manager-list.impl.js +3 -3
- package/dist/core/session-manager-list.js +3 -3
- package/dist/core/session-manager.impl.js +3 -3
- package/dist/core/session-manager.js +3 -3
- package/dist/core/session-storage.impl.js +3 -3
- package/dist/core/session-storage.js +3 -3
- package/dist/core/storage/index.js +2 -2
- package/dist/core/storage/node-sqlite-thread.js +2 -2
- package/dist/core/storage/node-sqlite.js +2 -2
- package/dist/core/storage/offline-snapshot-file.impl.js +3 -3
- package/dist/core/storage/offline-snapshot-file.js +3 -3
- package/dist/core/storage/provider.js +2 -2
- package/dist/core/storage/selection.js +2 -2
- package/dist/core/storage/session/branch-fork-source.code.js +2 -2
- package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
- package/dist/core/storage/session/branch-fork-source.js +3 -3
- package/dist/core/storage/session/card-view.impl.js +3 -3
- package/dist/core/storage/session/card-view.js +3 -3
- package/dist/core/storage/session/child-reader.code.js +2 -2
- package/dist/core/storage/session/child-reader.impl.js +3 -3
- package/dist/core/storage/session/child-reader.js +3 -3
- package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
- package/dist/core/storage/session/chunked-resume-projection.js +3 -3
- package/dist/core/storage/session/expanded-child-details.code.js +2 -2
- package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
- package/dist/core/storage/session/expanded-child-details.js +3 -3
- package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
- package/dist/core/storage/session/fork-row-bytes.js +3 -3
- package/dist/core/storage/session/fork-row-index.impl.js +3 -3
- package/dist/core/storage/session/fork-row-index.js +3 -3
- package/dist/core/storage/session/fork-staging.code.js +1 -1
- package/dist/core/storage/session/fork-staging.impl.js +3 -3
- package/dist/core/storage/session/fork-staging.js +3 -3
- package/dist/core/storage/session/fork-window.code.js +2 -2
- package/dist/core/storage/session/fork-window.impl.js +3 -3
- package/dist/core/storage/session/fork-window.js +3 -3
- package/dist/core/storage/session/history-pages.impl.js +3 -3
- package/dist/core/storage/session/history-pages.js +3 -3
- package/dist/core/storage/session/jsonl-entry-projection.impl.js +3 -3
- package/dist/core/storage/session/jsonl-entry-projection.js +3 -3
- package/dist/core/storage/session/jsonl-session-store.impl.js +3 -3
- package/dist/core/storage/session/jsonl-session-store.js +3 -3
- package/dist/core/storage/session/memory-session-store.impl.js +3 -3
- package/dist/core/storage/session/memory-session-store.js +3 -3
- package/dist/core/storage/session/pinned-branch-resume.code.js +2 -2
- package/dist/core/storage/session/pinned-branch-resume.impl.js +3 -3
- package/dist/core/storage/session/pinned-branch-resume.js +3 -3
- package/dist/core/storage/session/released-history-files.code.js +1 -1
- package/dist/core/storage/session/released-history-files.impl.js +3 -3
- package/dist/core/storage/session/released-history-files.js +3 -3
- package/dist/core/storage/session/resident-fork-rows.impl.js +3 -3
- package/dist/core/storage/session/resident-fork-rows.js +3 -3
- package/dist/core/storage/session/session-resume.impl.js +3 -3
- package/dist/core/storage/session/session-resume.js +3 -3
- package/dist/core/storage/session/snapshot-cut.impl.js +3 -3
- package/dist/core/storage/session/snapshot-cut.js +3 -3
- package/dist/core/storage/session/snapshot-history.code.js +2 -2
- package/dist/core/storage/session/snapshot-history.impl.js +3 -3
- package/dist/core/storage/session/snapshot-history.js +3 -3
- package/dist/core/storage/session/sql-session-store.code.js +1 -1
- package/dist/core/storage/session/sql-session-store.impl.js +3 -3
- package/dist/core/storage/session/sql-session-store.js +3 -3
- package/dist/core/storage/session/tree-outline.impl.js +3 -3
- package/dist/core/storage/session/tree-outline.js +3 -3
- package/dist/core/storage/session/tree-presentation.impl.js +3 -3
- package/dist/core/storage/session/tree-presentation.js +3 -3
- package/dist/core/storage/storage-status.impl.js +3 -3
- package/dist/core/storage/storage-status.js +3 -3
- package/dist/core/storage/team.impl.js +3 -3
- package/dist/core/storage/team.js +3 -3
- package/dist/core/structured-output/index.code.js +1 -1
- package/dist/core/structured-output/index.impl.js +3 -3
- package/dist/core/structured-output/index.js +3 -3
- package/dist/core/tasks/task-completion-entry.impl.js +3 -3
- package/dist/core/tasks/task-completion-entry.js +3 -3
- package/dist/core/tasks/task-file-history.code.js +2 -2
- package/dist/core/tasks/task-file-history.impl.js +3 -3
- package/dist/core/tasks/task-file-history.js +3 -3
- package/dist/core/tasks/task-reference-archive.code.js +2 -2
- package/dist/core/tasks/task-reference-archive.js +3 -3
- package/dist/core/tasks/task-reference-identity.js +3 -3
- package/dist/core/tasks/task-reference-stream.impl.js +3 -3
- package/dist/core/tasks/task-reference-stream.js +3 -3
- package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
- package/dist/core/tasks/task-unsaved-answer.js +3 -3
- package/dist/core/tasks/task-view-source.impl.js +3 -3
- package/dist/core/tasks/task-view-source.js +3 -3
- package/dist/core/tools/read-url.impl.js +3 -3
- package/dist/core/tools/read-url.js +3 -3
- package/dist/core/worktree-snapshot/blob-store.js +2 -2
- package/dist/core/worktree-snapshot/errors.code.js +1 -1
- package/dist/core/worktree-snapshot/errors.impl.js +3 -3
- package/dist/core/worktree-snapshot/errors.js +3 -3
- package/dist/core/worktree-snapshot/session-index-reset.impl.js +3 -3
- package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
- package/dist/extensions/codemode/execute.impl.js +3 -3
- package/dist/extensions/codemode/execute.js +3 -3
- package/dist/extensions/codemode/renderer.impl.js +3 -3
- package/dist/extensions/codemode/renderer.js +3 -3
- package/dist/extensions/mcp/cli.code.js +1 -1
- package/dist/extensions/mcp/cli.impl.js +3 -3
- package/dist/extensions/mcp/cli.js +3 -3
- package/dist/extensions/mcp/cli.lazy.code.js +2 -2
- package/dist/extensions/mcp/cli.lazy.impl.js +3 -3
- package/dist/extensions/mcp/cli.lazy.js +3 -3
- package/dist/extensions/mcp/runtime.code.js +1 -1
- package/dist/extensions/mcp/runtime.impl.js +3 -3
- package/dist/extensions/mcp/runtime.js +3 -3
- package/dist/index.d.ts +21 -1
- package/dist/index.js +2 -2
- package/dist/main-first-time-setup.code.js +1 -1
- package/dist/main-first-time-setup.impl.js +3 -3
- package/dist/main-first-time-setup.js +3 -3
- package/dist/modes/interactive/components/stored-tree-view.code.js +2 -2
- package/dist/modes/interactive/components/stored-tree-view.impl.js +3 -3
- package/dist/modes/interactive/components/stored-tree-view.js +3 -3
- package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
- package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
- package/dist/modes/print-mode.js +1 -1
- package/dist/package-manager-cli.code.js +2 -2
- package/dist/package-manager-cli.impl.js +3 -3
- package/dist/package-manager-cli.js +3 -3
- package/dist/startup-files.json +1 -1
- package/dist/startup-stages/6.js +1 -1
- package/dist/utils/startup-database-spare.code.js +1 -1
- package/dist/utils/startup-database-spare.impl.js +3 -3
- package/dist/utils/startup-database-spare.js +3 -3
- package/dist/utils/tools-manager.impl.js +3 -3
- package/dist/utils/tools-manager.js +3 -3
- package/docs/background-tasks/reference.md +182 -0
- package/docs/background-tasks.md +98 -405
- package/docs/build.md +67 -27
- package/docs/changelog.mdx +1 -1
- package/docs/codemode.md +108 -39
- package/docs/compaction/branch-summaries.md +54 -0
- package/docs/compaction/custom-compactors.md +161 -0
- package/docs/compaction/memory-compaction.md +77 -0
- package/docs/compaction/reference.md +86 -38
- package/docs/compaction.md +51 -252
- package/docs/computer-use.md +169 -321
- package/docs/containerization.md +71 -57
- package/docs/custom-provider/api-reference.md +119 -25
- package/docs/custom-provider/oauth.md +114 -132
- package/docs/custom-provider/override.md +37 -27
- package/docs/custom-provider/registration.md +107 -83
- package/docs/custom-provider/streaming.md +85 -71
- package/docs/custom-provider.md +85 -52
- package/docs/development.md +39 -29
- package/docs/docs.json +76 -63
- package/docs/environment-variables.md +94 -44
- package/docs/extensions/api-reference.md +86 -43
- package/docs/extensions/authoring.md +162 -154
- package/docs/extensions/events.md +80 -25
- package/docs/extensions/examples.md +90 -85
- package/docs/extensions/ui.md +206 -82
- package/docs/extensions.md +79 -108
- package/docs/getting-started/authentication.md +67 -36
- package/docs/getting-started/first-session.md +53 -43
- package/docs/getting-started/installation.md +116 -89
- package/docs/getting-started/project-instructions.md +48 -34
- package/docs/guides/configuration.md +82 -20
- package/docs/guides/non-interactive.md +66 -24
- package/docs/guides/resume-on-any-machine.md +135 -82
- package/docs/guides/team-setup.md +114 -105
- package/docs/guides.md +76 -32
- package/docs/herdr.md +15 -16
- package/docs/how-atomic-works.md +140 -0
- package/docs/index.md +58 -44
- package/docs/intercom/operations.md +141 -151
- package/docs/intercom/reference.md +85 -108
- package/docs/intercom.md +84 -145
- package/docs/json.md +120 -67
- package/docs/keybindings.md +85 -49
- package/docs/libraries/agent-core.md +137 -275
- package/docs/libraries/ai.md +100 -84
- package/docs/libraries/codemode.md +210 -300
- package/docs/libraries/schema.md +59 -53
- package/docs/libraries/storage-postgres.md +49 -35
- package/docs/libraries/telemetry.md +153 -354
- package/docs/libraries/tui.md +265 -393
- package/docs/libraries.md +42 -26
- package/docs/llama-cpp.md +171 -161
- package/docs/mcp-servers.md +90 -51
- package/docs/models/choose-a-model.md +188 -0
- package/docs/models/reference.md +74 -30
- package/docs/models.md +153 -88
- package/docs/orchestration/migrating-workflows.md +23 -16
- package/docs/orchestration/patterns.md +39 -44
- package/docs/orchestration.md +65 -26
- package/docs/packages/authoring.md +51 -29
- package/docs/packages/reference.md +42 -21
- package/docs/packages.md +69 -58
- package/docs/programmatic.md +118 -24
- package/docs/prompt-templates.md +84 -83
- package/docs/providers/reference.md +43 -48
- package/docs/providers.md +219 -451
- package/docs/quickstart.md +140 -120
- package/docs/reference/cli.md +135 -97
- package/docs/reference.md +20 -18
- package/docs/rpc/examples.md +76 -20
- package/docs/rpc/extension-ui.md +64 -38
- package/docs/rpc/protocol.md +361 -110
- package/docs/rpc.md +57 -17
- package/docs/sdk/reference.md +409 -534
- package/docs/sdk/storage.md +53 -13
- package/docs/sdk/structured-decisions.md +82 -56
- package/docs/sdk/web-server.md +57 -43
- package/docs/sdk.md +106 -84
- package/docs/security.md +42 -64
- package/docs/session-format.md +62 -38
- package/docs/sessions.md +99 -214
- package/docs/settings.md +165 -195
- package/docs/shell-aliases.md +9 -6
- package/docs/skills/authoring.md +69 -48
- package/docs/skills/reference.md +51 -20
- package/docs/skills.md +99 -148
- package/docs/slash-commands.md +129 -0
- package/docs/storage/custom-adapters.md +160 -85
- package/docs/storage/jsonl.md +81 -66
- package/docs/storage/postgres/pgbouncer.md +120 -126
- package/docs/storage/postgres/tuning.md +120 -143
- package/docs/storage/postgres.md +314 -330
- package/docs/storage/sqlite.md +71 -42
- package/docs/storage.md +298 -302
- package/docs/subagents/authoring.md +55 -38
- package/docs/subagents/reference.md +73 -33
- package/docs/subagents.md +119 -187
- package/docs/terminal-setup.md +50 -38
- package/docs/termux.md +67 -41
- package/docs/themes/reference.md +23 -19
- package/docs/themes.md +142 -127
- package/docs/tmux.md +47 -55
- package/docs/tools.md +147 -109
- package/docs/tui/reference.md +166 -214
- package/docs/tui.md +196 -341
- package/docs/usage.md +118 -138
- package/docs/verification.md +79 -51
- package/docs/web-access.md +121 -101
- package/docs/windows.md +26 -27
- package/docs/worktree-snapshots/reference.md +245 -0
- package/docs/worktree-snapshots.md +71 -259
- package/package.json +8 -8
- package/dist/_shared/startup-0-2-5QHPCEON.js.map +0 -1
- package/docs/guides/intercom.md +0 -32
- package/docs/guides/orchestration.md +0 -28
- package/docs/guides/subagents.md +0 -37
package/docs/terminal-setup.md
CHANGED
|
@@ -1,14 +1,35 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: "
|
|
3
|
-
sidebarTitle: "
|
|
4
|
-
description: "Configure terminal emulators for modified keys, mouse and clipboard behavior, inline images, hyperlinks, and status reporting."
|
|
2
|
+
title: "Configure your terminal"
|
|
3
|
+
sidebarTitle: "Configure your terminal"
|
|
4
|
+
description: "Configure terminal emulators for modified keys, Shift+Enter, mouse and clipboard behavior, inline images, hyperlinks, and status reporting."
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
Atomic enables the [Kitty keyboard protocol](https://sw.kovidgoyal.net/kitty/keyboard-protocol/) when your terminal supports it and falls back to xterm `modifyOtherKeys` where available. Most modern terminals work out of the box; a few need one setting for `Shift+Enter`, `Option+Enter`, or fast trackpad scrolling.
|
|
8
|
+
|
|
9
|
+
<Tip>
|
|
10
|
+
Both `Shift+Enter` and `Ctrl+J` insert a newline by default (`tui.input.newLine`). If your terminal cannot distinguish `Shift+Enter` from `Enter`, press `Ctrl+J` right away with no configuration changes.
|
|
11
|
+
</Tip>
|
|
12
|
+
|
|
13
|
+
## Terminal compatibility
|
|
14
|
+
|
|
15
|
+
Atomic detects capabilities automatically:
|
|
16
|
+
|
|
17
|
+
| Terminal | `Shift+Enter` | Inline images | OSC 8 hyperlinks | Color mode |
|
|
18
|
+
| --- | --- | --- | --- | --- |
|
|
19
|
+
| [Kitty](#kitty) | Out of the box | Kitty protocol | Yes | Truecolor |
|
|
20
|
+
| [Ghostty](#ghostty) | Out of the box (optional `Option+Backspace` tweak) | Kitty protocol | Yes | Truecolor |
|
|
21
|
+
| [WezTerm](#wezterm) | Out of the box (optional Kitty/Alt config) | Kitty protocol | Yes | Truecolor |
|
|
22
|
+
| [iTerm2](#iterm2) | Out of the box | iTerm2 protocol | Yes | Truecolor |
|
|
23
|
+
| Warp, [Herdr](/herdr), Rex, Orca (`ORCA_IMAGE_PROTOCOL=kitty`) | Out of the box | Kitty protocol | Yes | Truecolor |
|
|
24
|
+
| [Windows Terminal](#windows-terminal) (`WT_SESSION`) | Out of the box on Windows; [config for WSL/SSH](#windows-terminal) | No | Yes | Truecolor |
|
|
25
|
+
| [Alacritty](#alacritty) | Out of the box (optional macOS `Option+Enter` config) | No | Yes | Truecolor |
|
|
26
|
+
| [VS Code](#vs-code-integrated-terminal) | Out of the box on 1.109.5+ ([config for older](#vs-code-integrated-terminal)) | No | Yes | Truecolor |
|
|
27
|
+
| [Zed](#zed-integrated-terminal) | [Config needed](#zed-integrated-terminal) | No | Yes | Truecolor |
|
|
28
|
+
| [Apple Terminal](#apple-terminal) | Local macOS fallback (use `Ctrl+J` over SSH) | No | No | 256-color |
|
|
29
|
+
| [IntelliJ IDEA](#intellij-idea-integrated-terminal) (`JetBrains-JediTerm`), Windows consoles without `WT_SESSION` | Use `Ctrl+J` | No | No | Truecolor |
|
|
30
|
+
| [xfce4-terminal / terminator](#xfce4-terminal-and-terminator) | Use `Ctrl+J` | No | No | Truecolor / 256-color |
|
|
31
|
+
| GNU Screen (without `COLORTERM=truecolor`) | Depends on outer terminal | No | No | 256-color |
|
|
32
|
+
| [tmux](/tmux) | Requires `extended-keys` ([tmux setup](/tmux)) | Off by default | Only when `hyperlinks` is in `client_termfeatures` | Truecolor when `COLORTERM=truecolor`/`24bit` or `TERM` ends in `-direct` |
|
|
12
33
|
|
|
13
34
|
## Terminal emulator settings
|
|
14
35
|
|
|
@@ -22,14 +43,20 @@ Key reporting, iTerm2 inline images, OSC 8 hyperlinks, and truecolor work out of
|
|
|
22
43
|
|
|
23
44
|
iTerm2's default fast-trackpad setting can drop most of an accelerated wheel delta in those reports, making fullscreen scrolling feel slower than native scrolling. If fast trackpad scrolls move only about one line at a time:
|
|
24
45
|
|
|
25
|
-
|
|
26
|
-
|
|
46
|
+
<Steps>
|
|
47
|
+
<Step title="Open iTerm2 Advanced settings">
|
|
48
|
+
Open iTerm2 settings and go to **Advanced**.
|
|
49
|
+
</Step>
|
|
50
|
+
<Step title="Disable fast-trackpad throttling">
|
|
51
|
+
Search for **Trackpad scrolls fast?** and set it to **No**.
|
|
52
|
+
</Step>
|
|
53
|
+
</Steps>
|
|
27
54
|
|
|
28
55
|
This setting applies across iTerm2 and may also affect native trackpad scrolling. See [iTerm2 issue 9619](https://gitlab.com/gnachman/iterm2/-/work_items/9619).
|
|
29
56
|
|
|
30
57
|
### Apple Terminal
|
|
31
58
|
|
|
32
|
-
Atomic enables enhanced key reporting when available. If Terminal.app still sends plain Return or `ESC+CR` when you press `Shift+Enter`, Atomic uses a local macOS modifier fallback to recognize `Shift+Enter
|
|
59
|
+
Atomic enables enhanced key reporting when available. If Terminal.app still sends plain Return or `ESC+CR` when you press `Shift+Enter`, Atomic uses a local macOS modifier fallback to recognize `Shift+Enter` (this works only on the same Mac as Terminal.app, not over remote SSH).
|
|
33
60
|
|
|
34
61
|
Apple Terminal does not support 24-bit truecolor, so Atomic automatically uses 256-color mode. Because Terminal.app draws gaps between rows of the block-character logo, Atomic displays a text `∀ Atomic` wordmark with version and session details instead.
|
|
35
62
|
|
|
@@ -41,13 +68,7 @@ Add this line to your Ghostty config (`~/Library/Application Support/com.mitchel
|
|
|
41
68
|
keybind = alt+backspace=text:\x1b\x7f
|
|
42
69
|
```
|
|
43
70
|
|
|
44
|
-
Older setups may have added
|
|
45
|
-
|
|
46
|
-
```text
|
|
47
|
-
keybind = shift+enter=text:\n
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
That mapping sends a raw linefeed byte (`Ctrl+J`), preventing tmux and Atomic from seeing a real `Shift+Enter` key event. Remove it unless another tool still needs it. Because `Ctrl+J` is already bound to `tui.input.newLine` (`["shift+enter", "ctrl+j"]`), keeping it still inserts a newline in Atomic with no change to `~/.atomic/agent/keybindings.json`.
|
|
71
|
+
Older setups may have added `keybind = shift+enter=text:\n`. That mapping sends a raw linefeed byte (`Ctrl+J`), preventing tmux and Atomic from seeing a real `Shift+Enter` key event—remove it unless another tool still needs it. Because `Ctrl+J` is already bound to `tui.input.newLine` (`["shift+enter", "ctrl+j"]`), keeping it still inserts a newline in Atomic with no keybinding changes.
|
|
51
72
|
|
|
52
73
|
In the fullscreen TUI, links stay clickable, though Ghostty hides its hover underline and lower-left URL preview while Atomic captures mouse input. Hold `Shift+Command` on macOS or `Shift+Ctrl` on Linux to use Ghostty's native link handling.
|
|
53
74
|
|
|
@@ -133,7 +154,7 @@ On native Windows, Atomic checks the native Shift modifier on Return automatical
|
|
|
133
154
|
}
|
|
134
155
|
```
|
|
135
156
|
|
|
136
|
-
On Windows and WSL, follow-up queueing defaults to `Ctrl+Q` and dequeue defaults to `Alt+Q`, so you do not need to remap `Alt+Enter` for default shortcuts.
|
|
157
|
+
On Windows and WSL, follow-up queueing defaults to `Ctrl+Q` and dequeue defaults to `Alt+Q`, so you do not need to remap `Alt+Enter` for default shortcuts. Add an `alt+enter` action (`"input": "\u001b[13;3u"`) only if you bind an Atomic action to `alt+enter` yourself. If you already have an `actions` array, append the entry to it and fully reopen Windows Terminal.
|
|
137
158
|
|
|
138
159
|
### xfce4-terminal and terminator
|
|
139
160
|
|
|
@@ -162,29 +183,20 @@ In the fullscreen TUI, Atomic captures mouse input for clicking expandable block
|
|
|
162
183
|
|
|
163
184
|
- **Auto-copy and scroll settings:** Text selection copies automatically on mouse release unless `"fullscreenCopyOnSelect": false` is set in [Settings](/settings). Adjust wheel speed with `fullscreenWheelScrollLines` (`"auto"` or `1` to `100`) and scrollbar visibility with `fullscreenScrollbar` (`"auto"`, `"always"`, or `"hidden"`).
|
|
164
185
|
- **Windows right-click paste:** On native Windows outside VS Code's integrated terminal, an unmodified secondary mouse click pastes clipboard text into the focused input.
|
|
165
|
-
- **Multiplexers:** Inside tmux, GNU Screen, and Zellij, Atomic
|
|
186
|
+
- **Multiplexers:** Inside tmux, GNU Screen, and Zellij, Atomic reports mouse movement only while dragging instead of tracking every pointer move, keeping terminal traffic light while preserving clicks, scrolling, and drag selection.
|
|
166
187
|
- **Native terminal override:** Hold `Shift` (or `Shift+Command` on macOS / `Shift+Ctrl` on Linux in Ghostty) to bypass Atomic's mouse capture and use your terminal emulator's own selection or link handling.
|
|
167
188
|
|
|
168
|
-
##
|
|
169
|
-
|
|
170
|
-
Atomic detects terminal capabilities automatically:
|
|
171
|
-
|
|
172
|
-
| Terminal | Inline images | OSC 8 hyperlinks | Color mode |
|
|
173
|
-
| --- | --- | --- | --- |
|
|
174
|
-
| Kitty, Ghostty, WezTerm, Warp, [Herdr](/herdr), Rex, Orca (`ORCA_IMAGE_PROTOCOL=kitty`) | Kitty protocol | Yes | Truecolor |
|
|
175
|
-
| iTerm2 | iTerm2 protocol | Yes | Truecolor |
|
|
176
|
-
| Windows Terminal (`WT_SESSION`), Alacritty, VS Code, Zed | No | Yes | Truecolor |
|
|
177
|
-
| IntelliJ IDEA (`JetBrains-JediTerm`), Windows consoles without `WT_SESSION` | No | No | Truecolor |
|
|
178
|
-
| Apple Terminal, GNU Screen (without `COLORTERM=truecolor`) | No | No | 256-color |
|
|
179
|
-
| tmux | Off by default | Only when `hyperlinks` is in `client_termfeatures` | Truecolor when `COLORTERM=truecolor`/`24bit` or `TERM` ends in `-direct` |
|
|
189
|
+
## Override detected capabilities {#inline-images-hyperlinks-and-colors}
|
|
180
190
|
|
|
181
|
-
Override detected capabilities in `~/.atomic/agent/settings.json` (settings take precedence over environment variables) or with environment variables:
|
|
191
|
+
Override detected image, hyperlink, and color capabilities in `~/.atomic/agent/settings.json` (settings take precedence over environment variables) or with environment variables:
|
|
182
192
|
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
193
|
+
| Capability | Setting (`settings.json`) | Environment variable |
|
|
194
|
+
| --- | --- | --- |
|
|
195
|
+
| Inline images | `terminal.images` (`"kitty"`, `"iterm2"`, `"auto"`, `false`); display controls: `terminal.showImages`, `terminal.imageWidthCells` | `ATOMIC_IMAGE_PROTOCOL` (`kitty`, `iterm2`, `none`, `0`, `auto`) |
|
|
196
|
+
| OSC 8 hyperlinks | `terminal.hyperlinks` (`true`, `false`, `"auto"`) | `ATOMIC_HYPERLINKS` (`1`, `0`, `auto`) |
|
|
197
|
+
| 24-bit color | `terminal.trueColor` (`true`, `false`, `"auto"`) | `ATOMIC_TRUE_COLOR` (`1`, `0`, `auto`) |
|
|
186
198
|
|
|
187
|
-
See [tmux
|
|
199
|
+
See [Run Atomic in tmux](/tmux) for multiplexer-specific image and hyperlink details.
|
|
188
200
|
|
|
189
201
|
## SSH and Escape key delay
|
|
190
202
|
|
|
@@ -208,6 +220,6 @@ Atomic reports its state using the [Program Status Protocol (OSC 7501)](https://
|
|
|
208
220
|
| `error` | A run or manual `/compact` ended with an error that is not retried. The message is the first line of the error. |
|
|
209
221
|
| `idle` | Atomic started, or you cancelled the run or compaction. |
|
|
210
222
|
|
|
211
|
-
Reports never include prompts or model output. Status messages are capped at 2,048 UTF-8 bytes and control characters are replaced with spaces. On normal exit or `Ctrl+Z` suspend, Atomic sends `state=clear` to remove the indicator
|
|
223
|
+
Reports never include prompts or model output. Status messages are capped at 2,048 UTF-8 bytes and control characters are replaced with spaces. On normal exit or `Ctrl+Z` suspend, Atomic sends `state=clear` to remove the indicator and re-sends its status on resume.
|
|
212
224
|
|
|
213
225
|
Atomic sends reports only after the terminal answers its support query; tmux and GNU Screen do not forward OSC 7501. Set `ATOMIC_PROGRAM_STATUS=1` to force reports without querying, or `ATOMIC_PROGRAM_STATUS=0` to disable them (`PI_PROGRAM_STATUS` is a legacy alias). Any other value queries the terminal normally.
|
package/docs/termux.md
CHANGED
|
@@ -1,52 +1,77 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: "
|
|
3
|
-
sidebarTitle: "
|
|
4
|
-
description: "Install Atomic in Termux on Android,
|
|
2
|
+
title: "Run Atomic on Android (Termux)"
|
|
3
|
+
sidebarTitle: "Run on Android (Termux)"
|
|
4
|
+
description: "Install Atomic in Termux on Android, compile the required native module locally, and configure clipboard and storage access."
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
[Termux](https://termux.dev/) provides a terminal emulator and Linux environment on Android.
|
|
8
8
|
|
|
9
|
+
<Warning>
|
|
10
|
+
**Community-supported platform:** Android uses bionic libc rather than glibc or musl, so Atomic's `install.sh` installer does not run on Termux (it exits with `unsupported Linux libc: bionic`) and Atomic does not publish prebuilt Android ARM64 native binaries. You must install Atomic via npm and compile the required native module (`@bastani/atomic-natives`) locally with Rust before starting a session.
|
|
11
|
+
</Warning>
|
|
12
|
+
|
|
9
13
|
## Requirements and limitations
|
|
10
14
|
|
|
11
|
-
- **
|
|
12
|
-
- **
|
|
13
|
-
- **Install `fd` and `ripgrep` from Termux:** On Android, Atomic does not auto-download Linux `fd` or `rg` binaries because they cannot run on bionic libc. Install both packages through `pkg`.
|
|
14
|
-
- **Termux apps:** Install [Termux](https://github.com/termux/termux-app#installation) and [Termux:API](https://github.com/termux/termux-api#installation) from GitHub or F-Droid (the Google Play version is deprecated).
|
|
15
|
+
- **Termux apps:** Install both [Termux](https://github.com/termux/termux-app#installation) and [Termux:API](https://github.com/termux/termux-api#installation) from GitHub or F-Droid (the Google Play version is deprecated).
|
|
16
|
+
- **Install `fd` and `ripgrep` through `pkg`:** On Android, Atomic does not auto-download Linux `fd` or `rg` binaries because they cannot run on bionic libc.
|
|
15
17
|
- **Text-only clipboard:** Image clipboard paste (`Ctrl+V`) is not supported on Termux.
|
|
16
18
|
- **Shared storage access:** Run `termux-setup-storage` once to grant access to `/storage/emulated/0`.
|
|
17
19
|
|
|
18
20
|
## Install Atomic in Termux
|
|
19
21
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
pkg
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
22
|
+
<Steps>
|
|
23
|
+
<Step title="Install Termux dependencies">
|
|
24
|
+
Update Termux packages and install Node.js, Git, Termux:API CLI helpers, `fd`, `ripgrep`, and the Rust/C toolchain needed to compile the native module:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
pkg update && pkg upgrade
|
|
28
|
+
pkg install nodejs termux-api git fd ripgrep rust clang
|
|
29
|
+
```
|
|
30
|
+
</Step>
|
|
31
|
+
|
|
32
|
+
<Step title="Install the Atomic CLI">
|
|
33
|
+
Install `@bastani/atomic` globally with npm (included with Termux's `nodejs` package). Atomic does not require npm install scripts, so `--ignore-scripts` is safe:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
npm install -g --ignore-scripts @bastani/atomic
|
|
37
|
+
mkdir -p ~/.atomic/agent
|
|
38
|
+
```
|
|
39
|
+
</Step>
|
|
40
|
+
|
|
41
|
+
<Step title="Compile the Android ARM64 native module">
|
|
42
|
+
Clone the Atomic release tag matching your installed npm version, compile the native library with Cargo, and copy the resulting `.node` binary into `~/.atomic/agent`:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
ATOMIC_VER="$(node -p "require('$(npm root -g)/@bastani/atomic/package.json').version")"
|
|
46
|
+
git clone --depth 1 --branch "$ATOMIC_VER" https://github.com/bastani-inc/atomic.git ~/atomic-src
|
|
47
|
+
cd ~/atomic-src
|
|
48
|
+
cargo build --release --manifest-path crates/atomic-natives/Cargo.toml
|
|
49
|
+
cp target/release/libatomic_natives.so ~/.atomic/agent/atomic_natives.android-arm64.node
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
You can remove `~/atomic-src` after copying the compiled `.node` binary.
|
|
53
|
+
</Step>
|
|
54
|
+
|
|
55
|
+
<Step title="Point Atomic to the compiled native module and start">
|
|
56
|
+
Set `NAPI_RS_NATIVE_LIBRARY_PATH` in your current shell and persist it in `~/.bashrc`, then launch Atomic:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
export NAPI_RS_NATIVE_LIBRARY_PATH="$HOME/.atomic/agent/atomic_natives.android-arm64.node"
|
|
60
|
+
echo 'export NAPI_RS_NATIVE_LIBRARY_PATH="$HOME/.atomic/agent/atomic_natives.android-arm64.node"' >> ~/.bashrc
|
|
61
|
+
atomic
|
|
62
|
+
```
|
|
63
|
+
</Step>
|
|
64
|
+
</Steps>
|
|
65
|
+
|
|
66
|
+
<Note>
|
|
67
|
+
Setting `NAPI_RS_NATIVE_LIBRARY_PATH` bypasses Atomic's exact native-module release version check. When you upgrade `@bastani/atomic` later, rebuild the `.node` file from the matching release tag so native bindings stay in sync.
|
|
68
|
+
</Note>
|
|
42
69
|
|
|
43
70
|
## Clipboard support
|
|
44
71
|
|
|
45
72
|
When `TERMUX_VERSION` is set, Atomic uses `termux-clipboard-set` and `termux-clipboard-get` for text clipboard operations. Both commands time out after 5 seconds and require both the Termux:API Android app and the `termux-api` package.
|
|
46
73
|
|
|
47
|
-
If `termux-clipboard-set` fails, Atomic does not automatically fall back to OSC 52 unless you are connected over SSH, Mosh, or Rex, or set `ATOMIC_CLIPBOARD_OSC52=1`. Otherwise Atomic reports that the clipboard is unavailable.
|
|
48
|
-
|
|
49
|
-
Image clipboard paste (`Ctrl+V`) is not supported on Termux.
|
|
74
|
+
If `termux-clipboard-set` fails, Atomic does not automatically fall back to OSC 52 unless you are connected over SSH, Mosh, or Rex, or set `ATOMIC_CLIPBOARD_OSC52=1`. Otherwise Atomic reports that the clipboard is unavailable. Image clipboard paste (`Ctrl+V`) is not supported on Termux.
|
|
50
75
|
|
|
51
76
|
## Example AGENTS.md for Termux
|
|
52
77
|
|
|
@@ -77,14 +102,17 @@ Create `~/.atomic/agent/AGENTS.md` to document your Termux environment and helpe
|
|
|
77
102
|
|
|
78
103
|
## Troubleshooting
|
|
79
104
|
|
|
80
|
-
###
|
|
105
|
+
### Native module failed to load
|
|
106
|
+
|
|
107
|
+
Confirm `NAPI_RS_NATIVE_LIBRARY_PATH` points to an existing `.node` file built from the same Atomic release version:
|
|
81
108
|
|
|
82
|
-
|
|
109
|
+
```bash
|
|
110
|
+
ls -la "$NAPI_RS_NATIVE_LIBRARY_PATH"
|
|
111
|
+
```
|
|
83
112
|
|
|
84
|
-
|
|
85
|
-
2. Termux:API
|
|
113
|
+
### Clipboard not working
|
|
86
114
|
|
|
87
|
-
|
|
115
|
+
Install both Android apps from GitHub or F-Droid (Termux and Termux:API), then install the CLI helper package:
|
|
88
116
|
|
|
89
117
|
```bash
|
|
90
118
|
pkg install termux-api
|
|
@@ -100,7 +128,7 @@ termux-setup-storage
|
|
|
100
128
|
|
|
101
129
|
### Missing `fd` or `rg` warnings
|
|
102
130
|
|
|
103
|
-
|
|
131
|
+
Install both packages through Termux:
|
|
104
132
|
|
|
105
133
|
```bash
|
|
106
134
|
pkg install fd ripgrep
|
|
@@ -108,9 +136,7 @@ pkg install fd ripgrep
|
|
|
108
136
|
|
|
109
137
|
### Package installation issues
|
|
110
138
|
|
|
111
|
-
Termux has no official `pkg install bun` package
|
|
112
|
-
|
|
113
|
-
If npm fails, clear its cache and retry:
|
|
139
|
+
Termux has no official `pkg install bun` package; use npm from the `nodejs` package unless you installed Bun separately. If npm fails, clear its cache and retry:
|
|
114
140
|
|
|
115
141
|
```bash
|
|
116
142
|
npm cache clean --force
|
package/docs/themes/reference.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: "Theme reference"
|
|
3
|
-
sidebarTitle: "
|
|
2
|
+
title: "Theme format reference"
|
|
3
|
+
sidebarTitle: "Theme format"
|
|
4
4
|
description: "Reference for theme JSON structure, all 51 required and 3 optional color tokens, color formats, and terminal color modes."
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -37,19 +37,19 @@ description: "Reference for theme JSON structure, all 51 required and 3 optional
|
|
|
37
37
|
}
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
-
- `name` is required, must be a non-empty string, must be unique, and must not contain `/`. The name `system` is reserved and
|
|
41
|
-
- `vars` is optional. Define reusable colors here and reference them from `colors`, `workingIndicator`, `export`, or other `vars` entries. Chained variable references are supported; circular references fail
|
|
42
|
-
- `colors` must define all 51 required tokens. `scrollbarThumb` is optional and falls back to `selectedBg` when omitted. `searchMatchBg` and `searchMatchText` remain accepted for older theme files
|
|
43
|
-
- `workingIndicator` is optional.
|
|
44
|
-
- Explicit numeric values from `0` through `255`
|
|
45
|
-
- When
|
|
40
|
+
- `name` is required, must be a non-empty string, must be unique, and must not contain `/`. The name `system` is reserved (a custom theme named `system` is silently ignored). Avoid reusing other built-in names (`dark`, `light`, `catppuccin-*`): they override interactive rendering, while `/export` still uses the built-in theme and live hot reload disables itself.
|
|
41
|
+
- `vars` is optional. Define reusable colors here and reference them from `colors`, `workingIndicator`, `export`, or other `vars` entries. Chained variable references are supported; circular references fail with `"Circular variable reference detected"`, and undefined variable names fail with `"Variable reference not found"`.
|
|
42
|
+
- `colors` must define all 51 required tokens. `scrollbarThumb` is optional and falls back to `selectedBg` when omitted. `searchMatchBg` and `searchMatchText` remain accepted for compatibility with older theme files and are unused.
|
|
43
|
+
- `workingIndicator` is optional. Atomic's busy indicator (`∀`) pulses across a 6-step brightness gradient (`dark` → `lift` → `muted` → `accent` → `bright` → `peak`) and back. Override any of those six tones; Atomic derives omitted tones from the theme's selected background, accent, and text colors.
|
|
44
|
+
- Explicit numeric values from `0` through `255` stay exact terminal palette indices.
|
|
45
|
+
- When a basic ANSI index (`0` through `15`) seeds an omitted tone, Atomic mixes from its built-in approximation of common ANSI RGB values while the terminal still renders the explicit index itself.
|
|
46
46
|
- Both explicit and derived tones update on theme hot reload.
|
|
47
47
|
|
|
48
|
-
The `$schema` field enables editor completion and validation against the [theme JSON schema](https://github.com/bastani-inc/atomic/blob/main/packages/coding-agent/schemas/theme.schema.json). Atomic rejects
|
|
48
|
+
The `$schema` field enables editor completion and validation against the [theme JSON schema](https://github.com/bastani-inc/atomic/blob/main/packages/coding-agent/schemas/theme.schema.json). Atomic rejects unknown top-level keys or unknown properties under `colors`, `workingIndicator`, or `export`. Put reusable custom colors in `vars`.
|
|
49
49
|
|
|
50
50
|
## Color tokens
|
|
51
51
|
|
|
52
|
-
Every theme must define all 51 required color tokens. The three optional tokens
|
|
52
|
+
Every theme must define all 51 required color tokens. The three optional tokens fall back automatically when omitted: `scrollbarThumb` and unused `searchMatchBg` fall back to `selectedBg`, and unused `searchMatchText` falls back to `text`.
|
|
53
53
|
|
|
54
54
|
### Core UI (11 colors)
|
|
55
55
|
|
|
@@ -73,8 +73,8 @@ Every theme must define all 51 required color tokens. The three optional tokens
|
|
|
73
73
|
| --- | --- |
|
|
74
74
|
| `selectedBg` | Selected line background |
|
|
75
75
|
| `scrollbarThumb` | Fullscreen scrollbar thumb background; optional, falls back to `selectedBg` |
|
|
76
|
-
| `searchMatchBg` | Unused
|
|
77
|
-
| `searchMatchText` | Unused
|
|
76
|
+
| `searchMatchBg` | Unused compatibility token; optional, falls back to `selectedBg` |
|
|
77
|
+
| `searchMatchText` | Unused compatibility token; optional, falls back to `text` |
|
|
78
78
|
| `userMessageBg` | User message background |
|
|
79
79
|
| `userMessageText` | User message text |
|
|
80
80
|
| `customMessageBg` | Extension message background |
|
|
@@ -173,10 +173,10 @@ Five value formats are supported:
|
|
|
173
173
|
### 256-color palette
|
|
174
174
|
|
|
175
175
|
- `0` to `15`: Basic ANSI colors (terminal-dependent)
|
|
176
|
-
- `16` to `231`:
|
|
176
|
+
- `16` to `231`: 6×6×6 RGB cube (`16 + 36*R + 6*G + B` where `R`, `G`, and `B` are `0` to `5`)
|
|
177
177
|
- `232` to `255`: Grayscale ramp
|
|
178
178
|
|
|
179
|
-
|
|
179
|
+
## Terminal compatibility
|
|
180
180
|
|
|
181
181
|
Atomic selects truecolor (24-bit RGB) or 256-color output in this precedence order:
|
|
182
182
|
|
|
@@ -187,7 +187,9 @@ Atomic selects truecolor (24-bit RGB) or 256-color output in this precedence ord
|
|
|
187
187
|
- `TERM=dumb`, empty `TERM`, `TERM=linux`, `TERM=screen*`, or `TERM_PROGRAM=Apple_Terminal` selects 256-color.
|
|
188
188
|
- Other terminals default to truecolor.
|
|
189
189
|
|
|
190
|
-
When falling back to 256-color mode, Atomic maps 24-bit RGB colors to the nearest palette
|
|
190
|
+
When falling back to 256-color mode, Atomic maps 24-bit RGB colors to the nearest palette entry, which can turn a subtly tinted background gray. The tool status backgrounds `toolPendingBg`, `toolSuccessBg`, and `toolErrorBg` preserve their hue instead by picking the nearest palette color whose strongest RGB channel matches. Give those three tokens distinct dominant channels (for example blue, green, and red tints) or explicit 256-color indices so they remain distinguishable in 256-color terminals.
|
|
191
|
+
|
|
192
|
+
When detecting light vs. dark terminal appearance via `COLORFGBG`, Atomic reads the last `;`-separated integer: indices `0` through `6` and `8` map to `dark`, and all other integers map to `light`.
|
|
191
193
|
|
|
192
194
|
Check your terminal's advertised color capability:
|
|
193
195
|
|
|
@@ -195,8 +197,10 @@ Check your terminal's advertised color capability:
|
|
|
195
197
|
echo "$COLORTERM" # Outputs "truecolor" or "24bit" when advertised
|
|
196
198
|
```
|
|
197
199
|
|
|
198
|
-
|
|
200
|
+
### Disabling colors and `hexColorAnsi()`
|
|
199
201
|
|
|
200
|
-
- `NO_COLOR` (any value)
|
|
201
|
-
- `FORCE_COLOR=0` (or `FORCE_COLOR=false`)
|
|
202
|
-
-
|
|
202
|
+
- `NO_COLOR` (any value) disables every theme color (foreground and background) and text style (bold, italic, underline, inverse, strikethrough, dim) while keeping layout and text unchanged. `NO_COLOR` always takes precedence over `FORCE_COLOR`.
|
|
203
|
+
- `FORCE_COLOR=0` (or `FORCE_COLOR=false`) disables colors and styles the same way.
|
|
204
|
+
- `FORCE_COLOR=1` (or `true` or empty) and `FORCE_COLOR=2` cap truecolor themes at the 256-color palette.
|
|
205
|
+
- `FORCE_COLOR=3` keeps the terminal's resolved color mode for `Theme` rendering (a 256-color terminal is not upgraded to truecolor).
|
|
206
|
+
- Extensions painting custom `#rrggbb` colors can call `hexColorAnsi(hex, "fg")` or `hexColorAnsi(hex, "bg")` from `@bastani/atomic`. It returns `""` when color is disabled (`NO_COLOR` or `FORCE_COLOR=0`/`false`), maps to 256-color under `FORCE_COLOR=1`/`2`, forces truecolor under `FORCE_COLOR=3`, and otherwise follows the active theme's resolved color mode (including `terminal.trueColor`, `ATOMIC_TRUE_COLOR` / legacy `PI_TRUE_COLOR`, and terminal auto-detection).
|