Live data from Hacker News

S/party/hack like it's 1999

openwall.com

31–33 of 33 posts

Re: S/party/hack like it's 1999

#32
post #10

Combine this with https://thejh.net/misc/website-terminal-copy-paste and you've got something especially nasty.

Though as that link mentions, using the terminal's bracketed-paste feature can avoid that. It talks about oh-my-zsh but support for that is built-in to zsh since 5.1. It still isn't perfect, as the pasted text might contain fake end sequences or your terminal interrupt character.

Re: S/party/hack like it's 1999

#33
post #31
post #19

Can escape sequences survive being piped through "col -bx"?

Judging from a quick test, No. There's better options if you want to make the sequences visible, for example: sed -n l

It was actually a rhetorical question. :)

col -bx strips nonprintable characters. I have been using this for many years. Especially since the spread of Unicode. As for _viewing_ nonprintable characters, I am a heavy sed user and honestly I rarely use the l command except occassionally to view newlines, tabs and carriage returns. I prefer od or xxd.

Post reply on HN