× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: enabling 132x27 in xt5250
  • From: Scott Klement <klemscot@xxxxxxxxxxxx>
  • Date: Wed, 12 Apr 2000 11:33:49 -0500 (CDT)


Hi Steve,

The attached patch might do the job for you -- or at least give you an
idea of what you need to do... :)

You can take a look at the patch file, it shows the differences between
the original xt5250 script, and what I did to it...

Or, just go to the directory with the copy of xt5250 that you want to
apply the patch to, and type:    patch < xt3477FC.patch

and it should update xt5250 with my changes.

Hope that helps...



On Wed, 12 Apr 2000, Steve Fox wrote:

> Could someone please show me, a bash scripting illiterate, how I can add
> '-y IBM-3477-FC' to the xt5250 script so that it's launcher with color
> 132x27 mode by default?
--- /usr/local/bin/xt5250       Wed Apr 12 01:40:21 2000
+++ ./xt5250-test       Wed Apr 12 11:26:25 2000

@@ -19,13 +19,18 @@
 #
 get_host () {
   XT5250_HOST=""
+  FOUND_Y="no"

   while [ $# -ne 0 ] ; do
     case "$1" in
       -h|--help)
         exec "$bindir/tn5250";;
       -V|--version)
         exec "$bindir/tn5250 -V";;
-      -m|-s|-t|-y)
+      -m|-s|-t)

+       shift

+       ;;

+      -y)

+       FOUND_Y="yes"

        shift
        ;;
       -*)
@@ -104,9 +109,14 @@
 get_host "$@"
 XUSERFILESEARCHPATH="$pkgdatadir/%N"
 export XUSERFILESEARCHPATH XT5250_HOST
-
-exec xterm -name "xt5250" -bg black -fg white -T "xt5250 - $XT5250_HOST" \
-  +sb -tn xterm-5250 -geometry 80x25 -e "$0" -BOOT "$@"
+if [ "$FOUND_Y" = "yes" ] ; then

+    exec xterm -name "xt5250" -bg black -fg white -T "xt5250 - $XT5250_HOST" \

+      +sb -tn xterm-5250 -geometry 80x25 -e "$0" -BOOT "$@"

+else

+    exec xterm -name "xt5250" -bg black -fg white -T "xt5250 - $XT5250_HOST" \

+      +sb -tn xterm-5250 -geometry 132x27 -e "$0" -BOOT -y IBM-3477-FC "$@"

+fi

+   

 # If the exec fails:
 echo "${0##*/}: Can't exec xterm." >&2
 exit 1

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.