This is a really cool #resource https://gist.github.com/fnky/458719343aa.. It makes me want to write a #gui #framework using it. The only thing missing is the ability to query the #terminal #width / #columns and #height / #rows #size ... Apparently this can be done with an #ioctl call though: https://stackoverflow.com/a/23369919/284.. Apparently it even supports a #pixel mode, but it's not clear how exactly they are addressed?