-\*d. To browse a list of all terminal names recognized by the system, do
-
- toe | more
-
-from your shell. These capability files are in a binary format optimized for
-retrieval speed (unlike the old text-based \fBtermcap\fR format they replace);
-to examine an entry, you must use the \fBinfocmp\fR(1) command. Invoke it as
-follows:
-
- infocmp \fIentry-name\fR
-
-where \fIentry-name\fR is the name of the type you wish to examine (and the
-name of its capability file the subdirectory of \*d named for its first
-letter). This command dumps a capability file in the text format described by
-\fBterminfo\fR(\*n).
-.PP
-The first line of a \fBterminfo\fR(\*n) description gives the names by which
-terminfo knows a terminal, separated by `|' (pipe-bar) characters with the last
-name field terminated by a comma. The first name field is the type's
-\fIprimary name\fR, and is the one to use when setting \fBTERM\fR. The last
-name field (if distinct from the first) is actually a description of the
-terminal type (it may contain blanks; the others must be single words). Name
+@TERMINFO@.
+To browse a list of all terminal names recognized by the system, do
+.sp
+ @TOE@ | more
+.sp
+from your shell.
+These capability files are in a binary format optimized for
+retrieval speed (unlike the old text-based \fBtermcap\fP format they replace);
+to examine an entry, you must use the \fB@INFOCMP@\fP(1M) command.
+Invoke it as follows:
+.sp
+ @INFOCMP@ \fIentry_name\fP
+.sp
+where \fIentry_name\fP is the name of the type you wish to examine (and the
+name of its capability file the subdirectory of @TERMINFO@ named for its first
+letter).
+This command dumps a capability file in the text format described by
+\fBterminfo\fP(5).
+.PP
+The first line of a \fBterminfo\fP(5) description gives the names by which
+terminfo knows a terminal,
+separated by \*(``|\*('' (pipe-bar) characters with the last
+name field terminated by a comma.
+The first name field is the type's
+\fIprimary name\fP,
+and is the one to use when setting \fITERM\fP.
+The last name field
+(if distinct from the first)
+is actually a description of the
+terminal type (it may contain blanks; the others must be single words).
+Name