Category: Uncategorized
-
Ode to Amazon’s automated systems
A week or so ago I received a parcel from Amazon. It was addressed to me, but inside the only thing was an HP inkjet cartridge (I own a Canon printer) and the receipt was someone else’s (their name, address, etc., nothing to do with me). Turns out, Amazon can’t cope with this sort of…
-
Read the current terminal size from within bash
I’ve long wondered about a clean way to read terminal (xterm) escape sequence responses, especially from script/the command line. I’ve just come across a need to query the terminal size, and so it was time to go digging.