summaryrefslogtreecommitdiffstats
path: root/usr.bin/doscmd/doscmd.c
diff options
context:
space:
mode:
authortg <tg@FreeBSD.org>2000-06-23 08:57:17 +0000
committertg <tg@FreeBSD.org>2000-06-23 08:57:17 +0000
commit67154b7af03b1762052e4a3715df32c15ea4c7ab (patch)
treefd062b9d80f9dfccc79fd08f70da03e650f663e0 /usr.bin/doscmd/doscmd.c
parentb8a70f2c5857e842cb5dadd869ee5fa4a4082560 (diff)
downloadFreeBSD-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/doscmd.c')
-rw-r--r--usr.bin/doscmd/doscmd.c3
1 files changed, 3 insertions, 0 deletions
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);
OpenPOWER on IntegriCloud