Re:What typing ^D does on Unix (2009)
by y04nn on Tuesday September 06, 2016 @04:41PM
(#12439139)
Something I use extensively in terminals is ^L and ^M.
^L clear the screen and ^M for a line return.
[ Parent
| on HN ]
Re:What typing ^D does on Unix (2009)
by saunders91 on Tuesday September 06, 2016 @04:52PM
(#12439214)
May I ask why you find more convenient to press ^M for a line return instead of the line return key?
As someone else who also uses ^M for line return here's my reason.
I have the Caps key mapped to control, so ^M is 2 small finger movements as opposed to reaching for the return key which means either moving my (weak in my case) right wrist or moving my whole right forearm. It's a small movement to the return key but I find eliminating it really helps to reduce strain related pain when typing.
I also use ^H for backspace and ^I for tab for similar reasons. This also keeps my fingers on the home row.
Re:What typing ^D does on Unix (2009)
by philsnow on Tuesday September 06, 2016 @04:56PM
(#12439235)
I'm not proud of this, but I sometimes bounce between ^N (next-line in emacs) and ^I (tab character, bound to various thing in different emacs modes) to re-indent a region. I usually only do this for <10 lines. More than that and I go look up the function that does it 'right'.