richtext(1)
Okay bestie, welcome to the richtext(1) page from the General Commands Manual β yes, that richtext(1), the one for viewing a richtext document, typically a mail message. π Weβre keeping every flag, every warning, every legal line, and all the group-chat energy. β¨
π NAME π
richtext β view a richtext document, typically a mail message. π
πΈ SYNOPSIS πΈ
richtext [ -c ] [ -f ] [ -m ] [ -n ] [ -o ] [ -p ] [ -s charset ] [ -t ]
[ file ]
β¨ DESCRIPTION β¨
The richtext program lets users view "richtext" files on an ASCII terminal. It uses termcap(5) capabilities to highlight text that is supposed to be bold or italic, and to underline text that is supposed to be underlined. It also implements most of the richtext commands that have to do with indentation and justification, as well as the "excerpt" and "signature" commands. π«Ά
Richtext is a very simple markup language for sending rich text through the mail. It is not to be confused with Microsoft's RTF (Rich Text Format). It is part of the MIME standard for multimedia Internet mail. π
The richtext program takes raw richtext output on its standard input or from a file and produces formatted output on its standard output, which is assumed to be a terminal. It is intended primarily for use by metamail(1). β
The program will also repair the raw input to match up any richtext command pairs that are out of order. π§
π OPTIONS π
When invoked with no options, richtext expects raw richtext on its standard input, which is corrected, and then formatted output is written on its standard output. The following options can alter that behaviour: π
-aβ this option, which is only available under DOS, toggles whether or not to use ANSI mode for highlighting bold, italic, or underlined text. π₯οΈ-cβ this directsrichtextto just correct the raw richtext and write the corrected version to its standard output, without performing any formatting. π-fβ this directsrichtextto use termcap-derived escape codes for bold and italic text, even ifrichtextis called in a pipe. π§ͺ-mβ this directsrichtextto interpret'<'in multi-byte Japanese and Korean sequences as a real less-than symbol and not the start of a richtext command. This is called the''multi-byte '<' hack''in the source code. Primarily this is for international variants of richtext. π-nβ this directsrichtextto not do any correction to the raw richtext it receives. π«-oβ this directsrichtextto use overstriking for underlining, etc., on terminals where this is the most appropriate behavior. π-pβ this enables the use of a pager which reports "Press RETURN to go on" after each screen-full of data. Alternatively, if the environment variableMM_USEPAGERis present, then the pager will also be used. This option and the environment variable have no effect if either standard input or standard output is redirected. π-scharset β this directsrichtextto use the specified default character set initially when processing the text. Legal values areus-ascii,iso-2022-jpandiso-2022-kr. Any other value will default tous-ascii. π€-tβ this directsrichtextNOT to use termcap-derived escape codes for bold and italic text, even ifrichtextis called in a terminal. Instead,"*"and"_"will be used to highlight the affected text. β¨
π» X11 Resources π»
If you're using the xterm program, you can control what font is used for bold text using the "xterm*boldFont" resource. π₯οΈπ
π SEE ALSO π
π BUGS π
Okay so this is a very quick hack, really -- an attempt to provide minimal richtext support for an ASCII terminal. The author makes no pretense of having gotten every single case right. π No cap: itβs a hack, bestie.
π COPYRIGHT π
Legal tea, served exactly: β
Copyright (c) 1991 Bell Communications Research, Inc. (Bellcore) Permission to use, copy, modify, and distribute this material for any purpose and without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies, and that the name of Bellcore not be used in advertising or publicity pertaining to this material without the specific, prior written permission of an authorized representative of Bellcore. BELLCORE MAKES NO REPRESENTATIONS ABOUT THE ACCURACY OR SUITABILITY OF THIS MATERIAL FOR ANY PURPOSE. IT IS PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES.
π AUTHORS π
- Nathaniel S. Borenstein
- Richtext correction algorithm and international language support by Rhys Weatherley (
rhys@cs.uq.oz.au).
And thatβs the whole page, bestie β Release 1 of richtext(1), and the footer has no date printed, so no date to spill. π«Άπβ¨
π¦ where this page comes from
- opensuse-leap 16.0: metamail 2.7.19-bp160.1.13 Β· GPL-2.0-only AND MIT
- opensuse-leap 16.0: metamail 2.7.19-bp160.1.13 Β· GPL-2.0-only AND MIT
- opensuse-leap 16.0: metamail 2.7.19-bp160.1.13 Β· GPL-2.0-only AND MIT
- opensuse-leap 16.0: metamail 2.7.19-bp160.1.13 Β· GPL-2.0-only AND MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms