diff options
author | tg <tg@FreeBSD.org> | 2000-06-23 08:57:17 +0000 |
---|---|---|
committer | tg <tg@FreeBSD.org> | 2000-06-23 08:57:17 +0000 |
commit | 67154b7af03b1762052e4a3715df32c15ea4c7ab (patch) | |
tree | fd062b9d80f9dfccc79fd08f70da03e650f663e0 /usr.bin/doscmd | |
parent | b8a70f2c5857e842cb5dadd869ee5fa4a4082560 (diff) | |
download | FreeBSD-src-67154b7af03b1762052e4a3715df32c15ea4c7ab.zip FreeBSD-src-67154b7af03b1762052e4a3715df32c15ea4c7ab.tar.gz |
Install a VGA font for the X11 mode. Use a line like
xset fp+ /usr/libdata/doscmd/fonts
in your .xsession to activate it.
Document X11_FONT option in .doscmdrc.
Open window if $DISPLAY is set.
Diffstat (limited to 'usr.bin/doscmd')
-rw-r--r-- | usr.bin/doscmd/Makefile | 18 | ||||
-rw-r--r-- | usr.bin/doscmd/cp437-8x16.pcf.gz.uu | 113 | ||||
-rw-r--r-- | usr.bin/doscmd/doscmd.1 | 17 | ||||
-rw-r--r-- | usr.bin/doscmd/doscmd.c | 3 | ||||
-rw-r--r-- | usr.bin/doscmd/fonts.dir | 2 |
5 files changed, 146 insertions, 7 deletions
diff --git a/usr.bin/doscmd/Makefile b/usr.bin/doscmd/Makefile index 8ecdcec..714b1eb 100644 --- a/usr.bin/doscmd/Makefile +++ b/usr.bin/doscmd/Makefile @@ -10,7 +10,7 @@ SRCS= AsyncIO.c ParseBuffer.c bios.c callback.c cpu.c dos.c cmos.c config.c \ tty.c xms.c CFLAGS+= -I. -DDISASSEMBLER -CLEANFILES= emsdriv.sys redir.com +CLEANFILES= cp437-8x16.pcf.gz emsdriv.sys redir.com .if ${OBJFORMAT} == "aout" CLEANFILES+= doscmd.kernel crt0.o doscmd_loader.o @@ -42,6 +42,11 @@ beforeinstall: .endif ${INSTALL} ${COPY} -o ${BINOWN} -g ${EXEGRP} -m ${EXEMODE} \ emsdriv.sys redir.com ${DESTDIR}/usr/libdata/doscmd/ + ${INSTALL} ${COPY} -o ${BINOWN} -g ${EXEGRP} -m ${SHAREMODE} \ + cp437-8x16.pcf.gz ${DESTDIR}/usr/libdata/doscmd/fonts + cd ${.CURDIR} && \ + ${INSTALL} ${COPY} -o ${BINOWN} -g ${EXEGRP} -m ${SHAREMODE} \ + fonts.dir ${DESTDIR}/usr/libdata/doscmd/fonts .if ${OBJFORMAT} == "aout" doscmd: ${LIBCRT0} doscmd_loader.o ${LIBGCC} ${LIBC} @@ -52,17 +57,20 @@ doscmd: ${LIBCRT0} doscmd_loader.o ${LIBGCC} ${LIBC} .depend: doscmd_loader.c # Bogus dependencies to get more than one binary created by `make all'. -doscmd: doscmd.kernel emsdriv.sys redir.com +doscmd: cp437-8x16.pcf.gz doscmd.kernel emsdriv.sys redir.com .else -doscmd: emsdriv.sys redir.com +doscmd: cp437-8x16.pcf.gz emsdriv.sys redir.com .endif -redir.com: redir.com.uu - uudecode ${.CURDIR}/redir.com.uu +cp437-8x16.pcf.gz: cp437-8x16.pcf.gz.uu + uudecode ${.CURDIR}/cp437-8x16.pcf.gz.uu emsdriv.sys: emsdriv.sys.uu uudecode ${.CURDIR}/emsdriv.sys.uu +redir.com: redir.com.uu + uudecode ${.CURDIR}/redir.com.uu + # Make sure the library names are defined. We want to specify the full # path to the standard crt0.o, and building two binaries in one directory # breaks the automatic generation of dependencies for binaries. diff --git a/usr.bin/doscmd/cp437-8x16.pcf.gz.uu b/usr.bin/doscmd/cp437-8x16.pcf.gz.uu new file mode 100644 index 0000000..8071221 --- /dev/null +++ b/usr.bin/doscmd/cp437-8x16.pcf.gz.uu @@ -0,0 +1,113 @@ +$FreeBSD$ + +begin 644 cp437-8x16.pcf.gz +M'XL("#J#2SD``V-P-#,W+3AX,38N<&-F`.V=?9Q51WG'?T`"A,204*,(")'$ +MF*").V=W[^X2A!O>`I@`(<0@6MFPA"3D#4D:"&QVSRZ[[.6EOF#K"ZTV4FTM +MVMIB:UMLVB.QUJ)M+6UM)-5::DV+-K%4:Z2I]#=GG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$G=7XN]*'%Z)QZM6.Q2(/7%Z)5ZOQ.V5^+T2QU?B^4I<7XGO +M*W%^5;)CB]@3_U<2`$HB0$D(*(D!)4&@)`J4A(&2.%!M=K`2>Q(*2F)!23`H +MB08EX:`D'I0$A)*(4!(2JMV.?F)/HD))6"B)"R6!H20RE(2&DMA0$AQ*HD-U +MV.'4CJ<RH$I\>!(?GL2')_'A27QX$A^>Q(<G\>%)?'C*#M!B3^+#D_CP)#X\ +MB0]/XL.3^/`D/CP[WML!?WC$%WMVS+>#OAWU[;!OQWT[\$M\>!(?GL2'UVRG +M$+$G\>%)?'@2'Y[$AR?QX4E\>!(?GL2')_'AM=@Y2>Q)?'@2'Y[$AR?QX4E\ +A>!(?GL2')_'A27QXK7:2:Y7SZW/Q_Q#X7P&*JEP88@`` +` +end diff --git a/usr.bin/doscmd/doscmd.1 b/usr.bin/doscmd/doscmd.1 index 1aab48d..4d27017 100644 --- a/usr.bin/doscmd/doscmd.1 +++ b/usr.bin/doscmd/doscmd.1 @@ -524,8 +524,21 @@ version To change it to version 3.2 (the default in previous versions of .Nm doscmd ) use the value of -.Cm 320 . -.El +.Cm 320 ; +.Pp +.It Cm X11_FONT +The value of this variable determines the font used in an X +window. The default font is +.Cm vga , +which is installed in +.Pa /usr/libdata/doscmd/fonts . +Add the line +.Ic xset fp+ /usr/libdata/doscmd/fonts +to your +.Pa ${HOME}/.xsession +or +.Pa ${HOME}/.xinitrc +to let the X server find it. .Sh FILE TRANSLATION .Nm Doscmd translates diff --git a/usr.bin/doscmd/doscmd.c b/usr.bin/doscmd/doscmd.c index 11665aa..8b6727b 100644 --- a/usr.bin/doscmd/doscmd.c +++ b/usr.bin/doscmd/doscmd.c @@ -132,6 +132,9 @@ main(int argc, char **argv) argc -= optind; argv += optind; + if (getenv("DISPLAY") != NULL) + xmode = 1; + if (vflag && debugf == stderr) { debugf = stdout; setbuf (stdout, NULL); diff --git a/usr.bin/doscmd/fonts.dir b/usr.bin/doscmd/fonts.dir new file mode 100644 index 0000000..e23f58c --- /dev/null +++ b/usr.bin/doscmd/fonts.dir @@ -0,0 +1,2 @@ +1 +cp437-8x16.pcf.gz vga |