feat: rebrand as Open Claude and harden OpenAI REPL
This commit is contained in:
@@ -165,6 +165,12 @@ const EXTENDED_KEYS_TERMINALS = [
|
||||
/** True if this terminal correctly handles extended key reporting
|
||||
* (Kitty keyboard protocol + xterm modifyOtherKeys). */
|
||||
export function supportsExtendedKeys(): boolean {
|
||||
// Open Claude defaults this off because some real terminals render the UI
|
||||
// but stop delivering normal typing once kitty/modifyOtherKeys negotiation
|
||||
// is enabled. Power users can opt back in explicitly.
|
||||
if (process.env.OPENCLAUDE_ENABLE_EXTENDED_KEYS !== '1') {
|
||||
return false
|
||||
}
|
||||
return EXTENDED_KEYS_TERMINALS.includes(env.terminal ?? '')
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user