Skip to content

stty: implement "Special Control Character Assignments" #6799

@andrewliebenow

Description

@andrewliebenow

stty does not implement "Special Control Character Assignments":

eof
eol
erase
intr
kill
quit
susp
start
stop

See https://pubs.opengroup.org/onlinepubs/9699919799/utilities/stty.html#tag_20_123_05_05

For example:

❯ /usr/bin/stty intr '' ; coreutils printf '%s\n' "${?:?}"
0
# Control-C is now unbound (does not send SIGINT)

❯ coreutils stty intr '' ; coreutils printf '%s\n' "${?:?}"
stty: invalid argument 'intr'
1
# Control-C is still bound

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions