ansi: show ANSI art in a UTF-8 terminal, or as plain or shaded text
Draws an .ans file into a grid the way an ANSI-BBS terminal would (cursor moves, the wrap at the SAUCE width, iCE colours) and writes it out as UTF-8: in colour, --plain, or --mono with coloured areas shaded by brightness. info prints the SAUCE record. One C99 file with no dependencies.
This commit is contained in:
6 files changed
+937
No files matched your search
@@ -0,0 +1,18 @@
|
||||
PREFIX ?= $(HOME)
|
||||
BINDIR ?= $(PREFIX)/bin
|
||||
MANDIR ?= $(PREFIX)/share/man/man1
|
||||
CFLAGS ?= -O2
|
||||
CFLAGS += -std=c99 -Wall -Wextra -pedantic
|
||||
|
||||
ansi: ansi.c
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ ansi.c
|
||||
|
||||
install: ansi
|
||||
install -d $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)
|
||||
install -m 755 ansi $(DESTDIR)$(BINDIR)/ansi
|
||||
install -m 644 ansi.1 $(DESTDIR)$(MANDIR)/ansi.1
|
||||
|
||||
clean:
|
||||
rm -f ansi
|
||||
|
||||
.PHONY: install clean
|
||||
Reference in new issue
Block a user