Skip to content

doc: add doc for tty writes ( readline.js / REPL ) #20814

@shobhitchittora

Description

@shobhitchittora

The readline interface is missing the keybindings docs for possible input to tty. Attaching a list of possible bindings to be added to the doc.

KeyBindings Description
ctrl+shift+backspace delete line left
ctrl+shift+delete delete line right
ctrl+c emits SIGINT
ctrl+h delete left
ctrl+d delete right or EOF
ctrl+u delete from current to line start
ctrl+k delete from current to end of line
ctrl+a goto start of line
ctrl+e goto to end of line
ctrl+b back one character
ctrl+f forward one character
ctrl+l clear screen
ctrl+n next history item
ctrl+p prev history item
ctrl+z (need clarification)
ctrl+w or ctrl+backspace delete backwards to a word boundary
ctrl+delete delete forward to a word boundary
ctrl+left word left
ctrl+right word right
meta+b word left
meta+f word right
meta+d or meta+delete delete word right
meta+backspace delete word left

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to the documentations.readlineIssues and PRs related to the built-in readline module.replIssues and PRs related to the REPL subsystem.ttyIssues and PRs related to the tty subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions