News for hackers. Stuff that matters.
Re:Dell XPS 13 Review from a lifelong Mac user by dingo_bat on Saturday June 16, 2018 @01:04AM (#17325949)
So if I run a long running grep and terminate it using Ctrl+c, which remote host am I sending the command to?
Re:Dell XPS 13 Review from a lifelong Mac user by icedchai on Saturday June 16, 2018 @05:34AM (#17326734)
It would be sent to whatever process is attached to the current pseudo terminal. (When I said "remote" I was more referring to the SSH scenario, but the mechanism is the same...)
Re:Dell XPS 13 Review from a lifelong Mac user by dingo_bat on Saturday June 16, 2018 @10:09AM (#17327475)
Ok, so that means the remote vs local logic doesn't apply. In fact none does. The demarcations are arbitrary. Cmd is randomly used and ctrl is randomly used. Even if there is a remote vs local rule, why not make ctrl do something for local programs? Do you use a separate keyboard for your ssh and another one for email? No. The keys switch contexts according to the active program.