]> git.pld-linux.org Git - packages/dosemu.git/commitdiff
- some modifications to let xdos work
authorjuandon <witekfl@pld-linux.org>
Tue, 14 May 2002 15:36:22 +0000 (15:36 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- Please, improve it

Changed files:
    dosemu-global.conf-xdos.patch -> 1.1

dosemu-global.conf-xdos.patch [new file with mode: 0644]

diff --git a/dosemu-global.conf-xdos.patch b/dosemu-global.conf-xdos.patch
new file mode 100644 (file)
index 0000000..cfcaf4e
--- /dev/null
@@ -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
This page took 0.041188 seconds and 4 git commands to generate.