A stray "j" ruined my evening
napkins.mtmn.name
A stray "j" ruined my evening
1–10 of 36 posts
Re: A stray "j" ruined my evening
#2Re: A stray "j" ruined my evening
#3?
Re: A stray "j" ruined my evening
#4Re: A stray "j" ruined my evening
#5> but in ANSI newline delimiter is translated as "j" ?
Also possible that the j is a red herring and just some random character that's always there. Pasting a URL containing a newline into most browsers just truncates it at the newline, regardless of how much text is after. I only know this from occasionally copying links from a terminal window where the copy somehow added newlines every 80 characters (even though copying this way normally works fine). I'd have to copy the URL with newlines into a text editor, remove the new lines and copy again to be able to paste it.
Re: A stray "j" ruined my evening
#6Re: A stray "j" ruined my evening
#7> but in ANSI newline delimiter is translated as "j" ?
\n is ^J (ctrl-J) so there's some logic there, but I wonder if something has been lost in the message. I'd guess it either displays ^J or an inverse-colour J, rather than just a plain lowercase j. Also possible that the j is a red herring and just some random character that's always there. Pasting a URL containing a newline into most browsers just truncates it at the newline, regardless of how much text is after. I o…
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.
Re: A stray "j" ruined my evening
#8Earlier quoted context omitted.
\n is ^J (ctrl-J) so there's some logic there, but I wonder if something has been lost in the message. I'd guess it either displays ^J or an inverse-colour J, rather than just a plain lowercase j. Also possible that the j is a red herring and just some random character that's always there. Pasting a URL containing a newline into most browsers just truncates it at the newline, regardless of how much text is after. I o…
> \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.
Re: A stray "j" ruined my evening
#9So this is a bug in that Signal TUI he was using? I.e. it mangles newlines in pasted text.
Re: A stray "j" ruined my evening
#10I like how -j fixed the stray j problem....