Path: news1.icaen!news.uiowa.edu!news.physics.uiowa.edu!math.ohio-state.edu!news.cis.ohio-state.edu!newsfeed.berkeley.edu!news2.best.com!news1.best.com!sdd.hp.com!col.hp.com!news.cup.hp.com!not-for-mail
From: Dave Tribby <tribby@cup.hp.com>
Newsgroups: comp.sys.apple2.gno
Subject: Re: gsh 2.0 problem..
Date: Tue, 06 Apr 1999 10:43:17 -0700
Organization: Hewlett-Packard, Cupertino CA
Lines: 103
Message-ID: <370A47B5.3B67@cup.hp.com>
References: <Pine.GSO.4.02.9904020407160.13677-100000@isis.visi.com> <37091F26.1D53@cup.hp.com>
NNTP-Posting-Host: hpindhx.cup.hp.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.01Gold (X11; I; HP-UX B.10.10 9000/715)
Xref: news1.icaen comp.sys.apple2.gno:6779

Steve (snelson@mozart.peds.uiowa.edu) sent e-mail asking for more
details on how I run GNO under the kegs emulator on my HP-UX
workstation.  Here's my reply. (Hope the @#!% news software
doesn't slice the lines up so much as to make it unreadable!)


Here's a little ksh script I call startkegs...

 ==========

#!/bin/ksh -p

# Start kegs with xterminals hanging off of ports

(sleep 10 ; xterm -T "port1 (.ttyb)" -n "KEGS p1" -e telnet localhost
6501) &
(sleep 10 ; xterm -T "port2 (.ttya)" -n "KEGS p2" -e telnet localhost
6502) &
kegs -audio 0 "$@"

 ==========

Often, I'll tell kegs to ignore bad memory accesses and skip video
updates:

  startkegs -ignbadacc -skip 4


When the telnet xterm windows pop up, I put them into character
mode...

  ctrl-]
  telnet> mode character

In the kegs window, I log into GNO as root and execute a little
script that enables logins from the telnet windows

 ==========

/usr/sbin/getty xterm .ttya &
/usr/sbin/getty xterm .ttyb &

 ==========

My /etc/termcap has an entry for xterm with these values...

 ==========

#
# Entry for an xterm. Insert mode has been disabled.
#  (entry taken from a linux system and modified by Dave Tribby)
#
xterm|xterm terminal emulator (X Window System):\
        :am:bs:km:ms:pt:xn:xo:\
        :co#80:it#8:li#24:\
        :AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:F1=\E[23~:F2=\E[24~:\
        :IC=\E[%d@:LE=\E[%dD:RA=\E[?7l:RI=\E[%dC:SA=\E[?7h:UP=\E[%dA:\
        :ac=aaffggjjkkllmmnnooqqssttuuvvwwxx:ae=^O:al=\E[L:as=^N:bl=^G:\
        :cb=\E[1K:cd=\E[J:ce=\E[K:cl=\E[H\E[2J:cm=\E[%i%d;%dH:cr=^M:\
        :cs=\E[%i%d;%dr:ct=\E[3g:dc=\E[P:dl=\E[M:do=\E[B:eA=\E)0:\
        :ho=\E[H:ic=\E[@:is=\E[m\E[?1l\E>:k0=\E[21~:k1=\E[11~:\
        :k2=\E[12~:k3=\E[13~:k4=\E[14~:k5=\E[15~:k6=\E[17~:\
        :k7=\E[18~:k8=\E[19~:k9=\E[20~:kD=^H:kH=\EOw:kI=\E[2~:\
        :kN=\E[6~:kP=\E[5~:kb=^H:kd=\E[B:kh=\E[H:kl=\E[D:kr=\E[C:\
        :ku=\E[A:le=\E[D:mb=\E[5m:md=\E[1m:me=\E[m:mh=\E[2m:mr=\E[7m:\
        :nd=\E[C:rc=\E8:rs=\E[m\E[?1l\E>:sc=\E7:se=\E[m:sf=\ED:\
        :so=\E[7m:sr=\EM:st=\EH:ta=^I:te=\E[2J\E[?47l\E8:\
        :ti=\E7\E[?47h:ue=\E[m:up=\E[A:us=\E[4m:

 ==========


I press return in one of the xterm windows a couple of times to clear
some pending garbage, then log in.

When I echo $TERM, it's set to vt100 rather than xterm, so I reset
the value

setenv TERM xterm


It's easy to have three versions of gsh running simultaneously...

% /bin/ps -la
   ID  PPID PGRP STATE     TT MMID USER     TIME COMMAND
    1     1   00 ready     co 1002 0000    09:32 NullProcess
    2     1   02 paused    00 1004 0000    00:00 init
    3     2   02 blocked   00 1003 0000    00:00 syslogd
  102     5   03 paused    02 1008 0000    00:04 -gsh
    5     2   04 blocked   co 1006 0000    00:05 -gsh
  134   102   06 running   02 100A 0000    00:00 /bin/ps -la
   41     1   05 blocked   01 1009 1000    00:04 -gsh


There is a problem that I haven't been able to track down.  I don't
know if the problem is in gsh or in the kegs emulation of the serial
ports, but after awhile one or both of the shells that run through
the ports will hang for no apparent reason.  They are waiting at the
prompt, but don't respond.

Let me know if you are able to get things going.

  -- Dave Tribby
