Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| util:ans2asc [2011/06/17 15:39] – digitalman | util:ans2asc [2026/01/27 18:43] (current) – Updated with all the current options and details on SAUCE usage digital man | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== ANS2ASC ====== | ====== ANS2ASC ====== | ||
| - | The ANS2ASC utility may be used to convert files encoded with ANSI X3.64 terminal escape sequences (e.g. '' | + | ANSI to Synchronet Ctrl-A message format conversion utility |
| + | |||
| + | The ANS2ASC utility may be used to convert files encoded with ANSI X3.64 terminal escape sequences (e.g. '' | ||
| + | |||
| + | This utility will convert basic non-animated ANSI files into Synchronet Ctrl-A | ||
| + | code files that can be displayed to color or monochrome ANSI terminal users with | ||
| + | attractive results as well as non-ANSI (e.g. TTY) terminal users. This allows you to use an ANSI | ||
| + | drawing program (such as TheDraw) to create your menus in ANSI and convert the | ||
| + | ANSI file to Ctrl-A message format for your '' | ||
| + | use the converted file for all users (terminal types) by keeping the ANSI (.ANS) version in | ||
| + | a directory other than your '' | ||
| + | |||
| + | If, for example, you create a main menu with an ANSI drawing program that you | ||
| + | want your TTY and monochrome-ANSI users to see with attractive output, use | ||
| + | ANS2ASC to create the '' | ||
| + | |||
| + | Type: '' | ||
| + | in your '' | ||
| + | |||
| + | Type: '' | ||
| + | in your '' | ||
| + | |||
| + | If you rename '' | ||
| + | you will not need the '' | ||
| + | terminal types. | ||
| + | |||
| + | This utility is also useful for creating colorful system, newuser, feedback | ||
| + | and other Synchronet '' | ||
| + | '' | ||
| + | typing: '' | ||
| + | |||
| + | The following ANSI terminal sequences (preceded by < | ||
| + | |||
| + | ^ ANSI ^ Ctrl-A Code ^ Explanation | ||
| + | | 2J | L | Clear Screen (other J values are ignored) | Yes | | ||
| + | | K | ||
| + | | #B | | Move cursor down # lines, converted to # line-feeds | Yes | | ||
| + | | #C | 7Fh-FFh | Move cursor right # columns | ||
| + | | #D | | Move cursor left # columns, converted to # backspaces or carriage-return if # >= 80 | Yes | | ||
| + | | 0m | N | Normal attribute | ||
| + | | 1m | H | High intensity | ||
| + | | 2m | N | Low intensity * | No | | ||
| + | | 3m | I | Italic * | No | | ||
| + | | 4m | I | Underline * | No | | ||
| + | | 5m | I | Blink | Yes | | ||
| + | | 6m | I | Rapid Blink * | No | | ||
| + | | 7m | I | Reverse Video * | No | | ||
| + | | 8m | E((deprecated "elite text" feature)) | Concealed text * | No | | ||
| + | | 30m | K | Foreground black | Yes | | ||
| + | | 31m | R | Foreground red | Yes | | ||
| + | | 32m | G | Foreground green | Yes | | ||
| + | | 33m | Y | Foreground yellow | ||
| + | | 34m | B | Foreground blue | Yes | | ||
| + | | 35m | M | Foreground magenta | ||
| + | | 36m | C | Foreground cyan | Yes | | ||
| + | | 37m | W | Foreground white | Yes | | ||
| + | | 40m | 0 | Background black | Yes | | ||
| + | | 41m | 1 | Background red | Yes | | ||
| + | | 42m | 2 | Background green | Yes | | ||
| + | | 43m | 3 | Background yellow | ||
| + | | 44m | 4 | Background blue | Yes | | ||
| + | | 45m | 5 | Background magenta | ||
| + | | 46m | 6 | Background cyan | Yes | | ||
| + | | 47m | 7 | Background white | Yes | | ||
| + | |||
| + | ===== Options ===== | ||
| + | |||
| + | ANS2ASC has the following command-line options: | ||
| + | |||
| + | | -ice | treat blink as bright-background (iCE colors) | | ||
| + | | -< | ||
| + | | -normal | ||
| + | | -newline | ||
| + | | -clear | ||
| + | | -pause | ||
| + | | -space | ||
| + | | -esc | use C-style string literal escaping of control and CP437 chars | | ||
| + | | -delay < | ||
| + | |||
| + | ==== SAUCE ==== | ||
| + | |||
| + | The '' | ||
| + | |||
| + | ===== Animation ===== | ||
| + | |||
| + | In general, animated ANSI files cannot be converted to equivalent Ctrl-A files. Only cursor positioning ANSI sequences which can be converted to non-ANSI equivalents (e.g. cursor-right or cursor-down positioning) may be converted to Ctrl-A codes. If you see the following warning message from ANS2ASC, that indicates that you most likely are trying to convert an ANSI file with unsupported animation sequences: | ||
| + | Unsupported ANSI code ' | ||
| + | |||
| + | However, unsupported color codes aren't usually an issue: | ||
| + | Unsupported ANSI code ' | ||
| + | |||
| + | Some ANSI editing programs will save ANSI files with unsupported cursor positioning sequences by default. To avoid saving unsupported cursor positioning sequences when using the **TheDraw**, | ||
| ===== See Also ===== | ===== See Also ===== | ||
| * [[: | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | |||
| + | {{tag> | ||
| - | {{tag> ansi}} | ||