fix: set TERM_PROGRAM and COLORTERM env vars for terminal identification#74
Merged
gi11es merged 1 commit intogi11es:masterfrom Apr 6, 2026
Merged
Conversation
Deckard was not setting TERM_PROGRAM, so CLI tools (notably Claude Code) could not identify it as a KKP-capable terminal. This caused Shift+Enter to submit prompts instead of inserting newlines, because Claude Code only activates Kitty keyboard protocol for recognized terminals. Set TERM_PROGRAM=Deckard (standard terminal identification variable) and COLORTERM=truecolor (advertises 24-bit color support). Fixes gi11es#73 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Owner
|
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #73
Summary
TERM_PROGRAM=Deckard— standard terminal identification variable, used by CLI tools to detect terminal capabilitiesCOLORTERM=truecolor— advertises 24-bit color supportWhy
Deckard was not setting
TERM_PROGRAM, so CLI tools (notably Claude Code) could not identify it as a terminal that supports the Kitty keyboard protocol. This caused Shift+Enter to submit prompts instead of inserting newlines.When Deckard is launched from Dock/Spotlight/Raycast, no terminal identification env vars are present. When launched from another terminal (e.g. Kitty, iTerm2), their env vars leak into Deckard's process and Claude Code works correctly — confirming the issue is purely about terminal detection.
Next step
After this merges, a bug report on anthropics/claude-code is needed to add "Deckard" to their list of recognized KKP-capable terminals.
Test plan
TERM_PROGRAM=DeckardandCOLORTERM=truecolorappear in shell environment viaenv | grep -E 'TERM_PROGRAM|COLORTERM'