CHARS := src/font/*9.xbm
OBJS := $(addprefix src/,config.o main.o font.o utf8.o state.o xshm.o screen.o draw.o tty.o)
BIN := analogterm2
-FONTS := $(addprefix tests/,a2-font-ansi.txt ocr-font-ansi.txt topaz-font-ansi.txt nosquare-font-ansi.txt square-font-ansi.txt serif-font-ansi.txt archaic-font-ansi.txt 3161-font-ansi.txt 3270-font-ansi.txt wargames-font-ansi.txt demonseed-font-ansi.txt)
+FONTDIRS := fonts/*x*
+FONTS := fonts/*/*ansi.txt
# OS dependent settings follow
OS_TARGET := UNIX
install:
$(INSTALL) -c -o 0 -g 0 -m 755 $(BIN) $(PREFIX)/bin
$(INSTALL) -d -o 0 -g 0 -m 755 $(PREFIX)/share/analogterm2
+ $(INSTALL) -d -o 0 -g 0 -m 755 $(PREFIX)/share/analogterm2/fonts
+ for f in $(FONTDIRS); do \
+ $(INSTALL) -d -o 0 -g 0 -m 755 $(PREFIX)/share/analogterm2/$$f ; \
+ done
for f in $(FONTS); do \
- $(INSTALL) -c -o 0 -g 0 -m 644 $$f $(PREFIX)/share/analogterm2 ; \
+ $(INSTALL) -c -o 0 -g 0 -m 644 $$f $(PREFIX)/share/analogterm2/$$f ; \
done
$(INSTALL) -c -o 0 -g 0 -m 755 tests/at2-aliases.sh $(PREFIX)/share/analogterm2 ; \
you are using tmux or screen, these ESC sequences should be issued
when detached as they are not understood or proxied/forwarded by
default. A collection of custom alternative fonts and aliases are
-included in the test/ directory, some are also installed by the
-GNUmakefile.
+installed in the share/analogterm2/ directory.
AnalogTerm 2 uses a 7x9 font matrix by default and includes an
internal font of that size natively. It can be started with the
Here is an example to setup a fancy custom statistics display window
utility. This also makes use of some of the above aliases.
-$ ( atmono; atblue3; atintscan2; atupper; atline; atmixed2; atcurnodisable; cat /usr/local/share/analogterm2/demonseed-font-ansi.txt; atslowscroll; atslowtext5 ) >/tmp/ds-stat-setup.txt
+$ ( atmono; atblue3; atintscan2; atupper; atline; atmixed2; atcurnodisable; cat /usr/local/share/analogterm2/fonts/7x9/demonseed-ansi.txt; atslowscroll; atslowtext5 ) >/tmp/ds-stat-setup.txt
Assuming that ds-stat-setup.txt was also added to
/usr/local/share/analogterm2/, example custom menu/launcher item