Email or username:

Password:

Forgot your password?
Top-level
Joshua T Corbin

@b0rk so this sort of pattern goes even further: Ctrl+J and such are classic 7-bit C0 control codes ; but there's also an a whole other set of 8-bit C1 control codes ; problem is that you need to somehow quote the C1 controls when writing them in 7-bit form ; this is why we write `ESC [` for the CSI ( control sequence initiator ) -- since it's the same position as the "[" character inside the 5-bit-wide C1 block

2 comments
Joshua T Corbin

@b0rk

Technically, one should be able to write `ESC E` to get a `NEL` -- IBM's alternative to `CR LF` that never caught on.

Technically, one should be able to use unicode U+009B to initiate a terminal control sequence ( since that's where the C1 control block is now permanently enshrined ).

Joshua T Corbin

@b0rk there's a very old document called "ansicode.txt" that you may find interesting.

I first found it in the tmux repo, and later did a translation to markdown as my own form of active reading.

Which has the side benefit of letting me link to a section within it: github.com/jcorbin/anansi/blob

Go Up