90
submitted 5 months ago by matcha_addict@lemy.lol to c/linux@lemmy.ml

I read a lot of answers online that its a bad idea, but the arguments did not make a lot of sense. "it's a heavily ingrained part of the eco system". Well if I can change it, what's the deal?

It makes more sense to make an interrupt signal be the harder shortcut, and copy to be ctrl+C, matching other programs and platforms.

you are viewing a single comment's thread
view the rest of the comments
[-] Max_P@lemmy.max-p.me 31 points 5 months ago

The thing about "it's a heavily ingrained part of the eco system" is that, it really is. We're not talking about user habits here, we're talking the whole ecosystem of software that expects it to work that way: the kernel, the shells, SSH, the terminal emulators, the virtual consoles.

Under the hood, those aren't keyboard shortcuts, they're control characters and you make those with Ctrl plus a key, and it's handled by the kernel itself so you'd have to run a custom kernel on every machine you use just so you can use Ctrl+C for copy.

So, on the wire those have to stay. You can configure your terminal emulator to maybe swap Ctrl and Super as super doesn't mean anything for a terminal. That's pretty much how things happen to be on macOS, since copy/paste is Super+C/V. Then your Ctrl key is free for anything you might want.

Some extra docs about all the codes: it's far from just ^C: https://man7.org/linux/man-pages/man4/console_codes.4.html

[-] Pantherina@feddit.de 3 points 5 months ago

Very interesting! Was always annoyed by the Ctrl+Shift+C

[-] matcha_addict@lemy.lol 3 points 5 months ago

Isn't it enough just to instruct stty to take the new shortcut, instead of running a custom kernel? Is there anything left out by doing this?

[-] callyral@pawb.social 2 points 5 months ago

idk it's weird to have ^C, ^M and other control characters and have one be ctrl+shift+c and the other be control+m

[-] matcha_addict@lemy.lol 4 points 5 months ago

It shouldn't be too difficult to remap them all to the ctrl+shift equivalent. I just have to make sure I get all of them.

this post was submitted on 09 Feb 2024
90 points (94.1% liked)

Linux

45753 readers
734 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS