Keyboard Interrupt Does not Clear Line in Blink Shell
- Dominant language
- Swift
- Stars
- 6.9k
- Forks
- 746
- PR merge metrics
- No merged PRs in 30d
Description
### Checklist
- [x] Using latest version on the [App Store](http://itunes.apple.com/app/id1156707581)
- [x] Read the [docs](http://blink.sh/docs/)
- [x] Searched for [existing GitHub issues](https://github.com/blinksh/blink/issues)
### Configuration
Blink Version: `v17.3.0.916`
iPadOS: `17.6.1`
### Describe the bug
Keyboard Interrupt (control-c) does not clear the prompt in blink shell. Instead, return must be pressed after control-c to get a blank prompt.
Ideally, control-c would behave the same in blink prompt as in bash--throwing you onto a new empty prompt line without the need to press enter.
Additionally, control-d doesn't delete the subsequent character like a linux readline prompt (with standard bindings) or a macOS/iPadOS text field.



Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the control-c and control-d behavior on the stated Blink and iPadOS versions, then locate the shell prompt's keyboard-input handling. The fix is complete when control-c produces a new empty prompt without pressing Return and control-d deletes the following character as described; verify both behaviors on the affected platform.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- shell, swift
- Domain
- cli, mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100