summaryrefslogtreecommitdiff
path: root/docs/core
diff options
context:
space:
mode:
authorDaniel Lee <[email protected]>2025-06-13 09:59:09 -0700
committerGitHub <[email protected]>2025-06-13 16:59:09 +0000
commitdaceb9963f8962051628127c661297fbd95b4a1d (patch)
tree5f528211ba48de4386df3aa3240042132782a88d /docs/core
parent8e804c9fa1d529dee98caed48354791976ca6f6c (diff)
feat(cli): support ctrl+d to exit (#878)
Similar to ctrl+c, ctrl+d can now be used to exit the program. To avoid accidental exit, ctrl+d must be pressed twice in relatively quick succession (same as ctrl+c). Following common UX pattern, ctrl+d will be ignored when the input prompt is non-empty. This behavior is similar to how most shell (bash/zsh) behaves. To support this, I had to refactor so that text buffer is initialized outside of the InputPrompt component and instead do it on the main App component to allow input controller to have access to check the content of the text buffer.
Diffstat (limited to 'docs/core')
0 files changed, 0 insertions, 0 deletions