logoalt Hacker News

thaumasiotestoday at 9:43 AM1 replyview on HN

> \n is ^J (ctrl-J) so there's some logic there

Specifically, J is the 10th letter of the alphabet and therefore ctrl-J is code for ascii 10. Same reason ctrl-D sends EOF and ctrl-I sends tab.


Replies

mike_hocktoday at 10:12 AM

Yes, but piping output containing newlines into wl-copy does not result in j's in the clipboard.