Skip to content

Instantly share code, notes, and snippets.

View delameter's full-sized avatar
🛰️
transmitting

Alexandr Shavykin delameter

🛰️
transmitting
View GitHub Profile

git hard-to-remembers

Git command list, which I use infrequently enough to keep forgetting the correct syntax for.

Note

Remote name is assumed to be "origin".

ReStructuredText headers

ReST headers syntax conventions (... is more what you'd call guidelines than actual rules).

@delameter
delameter / vt100.rst
Last active April 25, 2025 07:25
VT100 escape codes

VT100 escape codes

This document describes how to control a VT100 terminal. The entries are of the form "name, description, escape code".

The name isn't important, and the description is just to help you find what you're looking for. What you have to do is send the "escape code" to the screen. These codes are often several characters long, but they all begin with ^[. This isn't the two characters ^ and [, but rather a representation of the ASCII code ESC (which is why these are called escape codes).

Changing the font size in LaTeX

Changing the font size in LaTeX can be done on two levels, either affecting the whole document or parts/elements of it. Using a different font size on a global level will affect all normal-sized text as well as the size of headings, footnotes, etc. By changing the font size locally, however, a single word, a few lines of text, a large table or a heading throughout the document may be modified.

Changing the font size on a document-wide level

The standard classes, article, report and book support 3 different font sizes, 10pt, 11pt, 12pt (by default 10pt). The font size is set through the optional argument, e.g.:

\documentclass[12pt]{report}

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

GNU Coding Standards (excerpt)

Standards for Command Line Interfaces

It is a good idea to follow the POSIX guidelines for the command-line options of a program. The easiest way to do this is to use getopt to parse them. Note that the GNU version of getopt will normally permit options anywhere among the arguments unless the special argument -- is used. This is not what POSIX specifies; it is a GNU extension.

UNICODE EXTENDED ALPHANUMERICS