public inbox for linux-msdos@vger.kernel.org
 help / color / mirror / Atom feed
From: "Grigory Batalov" <grisxa@mail.ru>
To: linux-msdos@vger.kernel.org
Subject: Re: xdosemu & the _X_... variables in dosemu.conf
Date: Sat, 27 Apr 2002 14:06:51 +0400	[thread overview]
Message-ID: <20020427140651.14ef07ea.grisxa@mail.ru> (raw)
In-Reply-To: <20020426215438.875FF3DDE@basket.ball.reliam.net>

On Fri, 26 Apr 2002 23:41:32 +0200
"Hartmut Figge" <hfigge@uni.de> wrote:

> For me, i have a very ugly workaround. I have inserted the lines
> 
> if ($SURELY_X)
>   $DOSEMU_STDIN_IS_CONSOLE=(0)
> endif
> 
> just before the earlier mentioned lines, start xdosemu from the menu of
> the windowmanager with the command 'xdosemu.fake', where 'xdosemu.fake'
> is a shell-script with the lines
> 
> #!/bin/sh
> export SURELY_X=1
> xdosemu
> unset SURELY_X

  It's no bad =), my patch looks like this:
------
diff -ruN dosemu-1.1.2.orig/src/base/init/config.c dosemu-1.1.2/src/base/init/config.c
--- dosemu-1.1.2.orig/src/base/init/config.c  Mon Mar 18 23:26:44 2002
+++ dosemu-1.1.2/src/base/init/config.c       Tue Mar 19 00:54:20 2002
@@ -611,6 +611,10 @@
         }
         buf[j] = 0;
         setenv("DOSEMU_OPTIONS", buf, 1);
+	if (usedoptions['X'])
+	   { strcpy(buf, "0");
+	     setenv("DOSEMU_STDIN_IS_CONSOLE",buf,1);
+	    }
         return;
     }
     uname(&unames);
------

-- 
 Grigory Batalov.

  reply	other threads:[~2002-04-27 10:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-26 21:41 xdosemu & the _X_... variables in dosemu.conf Hartmut Figge
2002-04-27 10:06 ` Grigory Batalov [this message]
2002-06-21 15:56   ` witek
2002-06-22 13:44     ` pesarif

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020427140651.14ef07ea.grisxa@mail.ru \
    --to=grisxa@mail.ru \
    --cc=linux-msdos@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox