Skip to content

Instantly share code, notes, and snippets.

@hym3242
Last active December 30, 2023 13:09
Show Gist options
  • Save hym3242/68772fdc749a4709c5086c41fc76e81f to your computer and use it in GitHub Desktop.
Save hym3242/68772fdc749a4709c5086c41fc76e81f to your computer and use it in GitHub Desktop.
raw cat -v to show raw bytes input. like showkey by catb.
$ type rawcatv
rawcatv is a function
rawcatv ()
{
    sh -c 'trap "stty icanon" SIGINT; stty -icanon; cat -v $@;' _ $@
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment