UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: 12.6 Alphabetical Summary of RequestsChapter 12
Nroff and Troff
Next: 12.8 Predefined Number Registers
 

12.7 Escape Sequences

SequenceEffect
\\Prevent or delay the interpretation of \.
\e

Printable version of the current \ escape character.

\'

´ (acute accent); equivalent to \(aa.

\`

` (grave accent); equivalent to \(ga.

\-- Minus sign in the current font.
\.Period (dot).
\(space)

Unpaddable space-size space character.

\(newline)Concealed (ignored) newline.
\0Digit width space.
\|

1/6-em narrow space character (zero width in nroff).

\^

1/12-em half-narrow space character (zero width in nroff).

\&

Non-printing, zero width character.

\!Transparent line indicator.
\"Beginning of comment.
\$nInterpolate argument 1<=n<=9.
\%

Default optional hyphenation character.

\(xxCharacter named xx.
\*x or \*(xxInterpolate string x or xx.
\aNoninterpreted leader character.
\b'abc...'Bracket building function.
\cMake next line continuous with current.
\d

Forward (down) 1/2-em vertical motion (1/2 line in nroff).

\D'l x,y'

Draw a line from current position to coordinates x,y (ditroff only).

\D'c d'

Draw circle of diameter d with left edge at current position (ditroff only).

\D'e d1 d2'

Draw ellipse with horizontal diameter d1 and vertical diameter d2, with left edge at current position (ditroff only).

\D'a x1 y1 x2 y2'

Draw arc counterclockwise from current position, with center at x1,y1 and endpoint at x1+x2,y1+y2 (ditroff only).

\D'~ x1 y1 x2 y2...'

Draw spline from current position through the specified coordinates (ditroff only).

\fx or \f(xx or \fn

Change to font named x or xx or to position n.

\h'n'

Local horizontal motion; move right n or if n is negative move left.

\H'n'

Set character height to n points, without changing width (ditroff only).

\kx

Mark horizontal input place in register x.

\l'nc'Draw horizontal line of length n (optionally with c).
\L'nc'Draw vertical line of length n (optionally with c).
\nx\,\n(xxInterpolate number register x or xx.
\o'abc...'Overstrike characters a, b, c...
\pBreak and spread output line.
\r

Reverse 1-em vertical motion (reverse line in nroff).

\sn\,\s±n

Change point-size to n or increment by n. For example, \s0 returns to previous point size.

\S'n'

Slant output n degrees to the right. Negative values slant to the left. A value of zero turns off slanting (ditroff only).

\tNon-interpreted horizontal tab.
\u

Reverse (up) 1/2-em vertical motion (1/2 line in nroff).

\v'n'

Local vertical motion; move down n or if n is negative move up.

\w'string'Interpolate width of string.
\x'n'

Extra line-space function (n negative provides space before, n positive provides after).

\zc

Print c with zero width (without spacing).

\{Begin multi-line conditional input.
\}End multi-line conditional input.
\xx, any character not listed above.


Previous: 12.6 Alphabetical Summary of RequestsUNIX in a Nutshell: System V EditionNext: 12.8 Predefined Number Registers
12.6 Alphabetical Summary of RequestsBook Index12.8 Predefined Number Registers

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System