a2m/README.md

62 lines
1.8 KiB
Markdown
Raw Permalink Normal View History

2016-09-07 15:23:12 -07:00
# a2m
Convert ansi art to mirc art.
2018-07-16 00:05:09 -07:00
![screenshot](https://git.trollforge.org/a2m/plain/screenshot.png)
2016-09-07 15:48:47 -07:00
2016-09-09 12:22:02 -07:00
For reference screenshot is iTerm2 with Menlo font ssh'd to a linux
2016-09-07 18:34:05 -07:00
machine attached to a tmux session running irssi.
2016-09-07 15:23:12 -07:00
## Installation
2018-07-14 03:04:58 -07:00
```
make
sudo make install
```
2016-09-07 15:23:12 -07:00
## Usage
2018-07-14 03:04:58 -07:00
```
a2m [options] [input.ans]
-l n Crop n lines from the left side.
-r n Crop n lines from the right side.
-n Disable color output.
-p Print unprintable characters.
-t size Specify tab size, default is 8.
-w width Specify width, default is 80.
```
2016-09-07 15:23:12 -07:00
## Troubleshooting
### IRC Client
2018-07-14 03:04:58 -07:00
Most clients work fine assuming you're using a good font (see below.)
* Mirc has problems with color sequences following 3 byte Unicode characters.
* IRCCloud has incorrect colors.
2016-09-07 15:23:12 -07:00
### Terminal
Don't use reverse video, just make foreground white on black background, but
not bright white, there should be two different whites, bright white and
2016-09-07 16:37:41 -07:00
grayish white, 16 unique colors in all, as shown below:
2016-09-18 13:13:04 -07:00
Color | Regular | Bright
2016-09-07 16:37:41 -07:00
------|---------|-----
Black | #000000 (0, 0, 0) | #555555 (85, 85, 85)
Red | #aa0000 (170, 0, 0) | #ff5555 (255, 85, 85)
Green | #00aa00 (0, 170, 0) | #55ff55 (85, 255, 85)
2016-09-08 11:33:29 -07:00
Yellow | #aa5500 (170, 85, 0) | #ffff55 (255, 255, 85)
2016-09-07 16:37:41 -07:00
Blue | #0000aa (0, 0, 170) | #5555ff (85, 85, 255)
Magenta | #aa00aa (170, 0, 170) | #ff55ff (255, 85, 255)
Cyan | #00aaaa (0, 170, 170 ) | #55ffff (85, 255, 255)
White | #aaaaaa (170, 170, 170) | #ffffff (255, 255, 255)
2016-09-07 15:23:12 -07:00
2018-07-14 03:04:58 -07:00
### Fonts
2016-09-07 15:23:12 -07:00
2016-09-09 12:36:13 -07:00
Try *Andale Mono* or *Menlo* for Mac. *Deja Vu Sans* for Linux,
2016-09-18 13:13:04 -07:00
*Lucida Console* for Windows.
2016-09-09 12:22:02 -07:00
If the font you use is missing some of the block drawing unicode
characters its going to borrow them from another font, which
will probably having a different width than the original font.