• Kornblumenratte@feddit.org
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 hours ago

    Actually, Ctrl+C is the ASCII Code for the control character ETX (End of Text) since the early 60s. This is not a hotkey but a control character. To change this system, you’d have to change not only dozends of terminal emulators and the kernels of all unixoid operating systems, but at least ANSI, Unicode and Posix, too. And Windows, by the way - even Microsoft uses ctrl+c in both cmd.exe and powershell to kill the running process.

    • 8uurg@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      2 hours ago

      To be similarly pedantic: Ctrl+C is a hotkey that sends the corresponding ASCII code / codepoint to signal something, it is not an ASCII code itself.

      You could have the same character be sent by using Ctrl+Q (if you were to remap it), and not break compatibility with other processes while doing so: the codepoint being sent would be the same. From a technological perspective there is nothing special about the key combination Ctrl+C specifically, but altering this behavior in a terminal absolutely wreak havoc on the muscle memory of terminal users, and altering it’s behavior in a text editor on everyone else’s.