News for hackers. Stuff that matters.
Re:The Terminal Escape Sequences Ocean Is Deep and Dark by EthanHeilman on Wednesday January 18, 2023 @06:59AM (#34425699)
I wish I had the ability to subconsciousnessly convert hex to decimal when scanning a page. Sadly I have to intentionally do math in my head and that involves telling myself to look for such "absurdities". Thankfully my blog is just a git repo so I easily push fixes.

Thanks for the feedback.

Re:The Terminal Escape Sequences Ocean Is Deep and Dark by blueflow on Wednesday January 18, 2023 @07:29AM (#34425915)
27 is way to small for a byte value that starts with the hex digit B.
Re:The Terminal Escape Sequences Ocean Is Deep and Dark by EthanHeilman on Wednesday January 18, 2023 @08:15AM (#34426234)
You aren't wrong, but that requires asking the question is this hex value correct? There are mistakes I can see without thinking such as missing semicolons and there are mistakes that require me to mentally tell myself "check this value". I would love to get to the point where my brain notices that I flipped a hex character automatically, but I rarely have the chance to work with bytes and hex values directly.

If I see 345,345,345+123,123,123=578,578,578,578 I probably wouldn't notice that this is incorrect but once I decide to really look at it the three errors are obvious.

Re:The Terminal Escape Sequences Ocean Is Deep and Dark by unconed on Wednesday January 18, 2023 @08:06AM (#34426177)
As I commented below, it's incredibly striking exactly because it betrays a complete unawareness of the logic behind these systems.

These aren't just funny codes, there is a whole mindset behind it. ASCII being grouped in chunks of 32. Being able to flip between uppercase and lowercase by flipping a bit. The history of upper 8-bit codepages in DOS.

And I didn't even comment on the fact that your "byte" uses 16-bit notation.