From: juandon Date: Tue, 14 May 2002 15:36:22 +0000 (+0000) Subject: - some modifications to let xdos work X-Git-Tag: dosemu-1_0_2-17~3 X-Git-Url: http://git.pld-linux.org/?a=commitdiff_plain;h=bb4e09735ac80ee31e7cf9d64472271959dfa6ac;p=packages%2Fdosemu.git - some modifications to let xdos work - Please, improve it Changed files: dosemu-global.conf-xdos.patch -> 1.1 --- diff --git a/dosemu-global.conf-xdos.patch b/dosemu-global.conf-xdos.patch new file mode 100644 index 0000000..cfcaf4e --- /dev/null +++ b/dosemu-global.conf-xdos.patch @@ -0,0 +1,80 @@ +--- dosemu-1.0.2/etc/global.conf Tue May 14 15:25:38 2002 ++++ dosemu-1.0.2/etc/global.conf.new Tue May 14 17:13:19 2002 +@@ -232,33 +232,53 @@ + # we have GNU sh-utils < 2.0 + $xxx = shell("who am i") + endif +- if ( ($DOSEMU_STDIN_IS_CONSOLE eq "1") +- || ( strlen($xxx) && (strchr($xxx, "(" ) < 0 ))) +- $BEING_ON = "console" ++ ++ if ($DISPLAY ne "") ++ if (strchr($DOSEMU_OPTIONS,"X") >= 0) ++ $USING_X = (1) ++ $BEING_ON = "" ++ else ++ $BEING_ON = $BEING_ON, "_xterm" ++ endif + else +- if (strstr($xxx, "(:") < 0) +- $BEING_ON = "remote" +- $REMOTE_HOST = strsplit($xxx, strchr($xxx,"(")+1,99) +- $REMOTE_HOST = strdel($REMOTE_HOST, strchr($REMOTE_HOST,")"),99) +- else +- $BEING_ON = "" +- endif +- if ( (strchr($DOSEMU_OPTIONS,"X") >=0) && ($DISPLAY ne "") ) +- $USING_X = (1) +- endif +- if (strstr("xterm dtterm", $TERM) >= 0) +- $BEING_ON = $BEING_ON, "_xterm" +- else +- if (strstr("linux console", $TERM) < 0) +- # remote side must be some type of real terminal +- $BEING_ON = $BEING_ON, "_terminal" +- else +- # remote side is a Linux console +- $BEING_ON = $BEING_ON, "_console" +- endif +- endif ++ if ($DOSEMU_STDIN_IS_CONSOLE eq "1") ++ $BEING_ON = "console" ++ else ++ if (strstr("linux console", $TERM) < 0) ++ $BEING_ON = $BEING_ON, "_terminal" ++ else ++ $BEIGN_ON = $BEIGN_ON, "_console" ++ endif ++ endif + endif + ++# if ( ($DOSEMU_STDIN_IS_CONSOLE eq "1") ++# || ( strlen($xxx) && (strchr($xxx, "(" ) < 0 ))) ++# $BEING_ON = "console" ++# else ++# if (strstr($xxx, "(:") < 0) ++# $BEING_ON = "remote" ++# $REMOTE_HOST = strsplit($xxx, strchr($xxx,"(")+1,99) ++# $REMOTE_HOST = strdel($REMOTE_HOST, strchr($REMOTE_HOST,")"),99) ++# else ++# $BEING_ON = "" ++# endif ++# if ( (strchr($DOSEMU_OPTIONS,"X") >=0) && ($DISPLAY ne "") ) ++# $USING_X = (1) ++# endif ++# if (strstr("xterm dtterm", $TERM) >= 0) ++# $BEING_ON = $BEING_ON, "_xterm" ++# else ++# if (strstr("linux console", $TERM) < 0) ++# # remote side must be some type of real terminal ++# $BEING_ON = $BEING_ON, "_terminal" ++# else ++# # remote side is a Linux console ++# $BEING_ON = $BEING_ON, "_console" ++# endif ++# endif ++# endif ++ + warn "dosemu running on ", $BEING_ON; + + $xxx = $_term_char_set