Skip to content

Hitting Ctrl+C twice should exit the TUI #1245

@bolinfest

Description

@bolinfest

Currently, ctrl+d is the keyboard shortcut to exit the TUI (like in the Python REPL). There have been numerous requests to support ctrl+c instead. Though today, ctrl+c is the way you interrupt the model (which is arguably quite intuitive since it is associated with sending SIGINT):

#1244.

The TypeScript CLI supports pressing Esc twice to interrupt the model, which does not seem particularly intuitive to me.

Arguably the right solution is more like the node REPL where hitting ctrl+c the first time does not quit, but prints a message telling the user that if they really want to quit, they should submit ctrl+c again.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions