Hallo!
Ich habe für eine Mailbox ein Shell-Script geschrieben, das dem User angezeigt
werden soll, wenn er sich per Terminalprogramm einwählt. Das Shell-Script klappt
soweit auch ganz gut, nur wenn man das Shell Script über das Terminalprogramm
aufruft, dann erscheint die Darstellung nicht richtig. Zeilen sind z.B.
verschoben, und die Cursor-Steuerung funktioniert nicht. Mit einem Telnet login
klappt es allerdings ohne Probleme, nur halt nicht wenn man das ganze per
Terminalprogramm betrachtet.
Hat jemand hier Erfahrung mit dieser Sache? Hat jemand eine Idee?
Sorry, dass die Mail so lang ist. Ich hoffe ihr verzeiht mir noch einmal... :-)
----------------------------------------------
#!/bin/sh
#
# -------------------------------------------------------------------------
# AFU-BBS TERMINAL-PROGRAMM MENÜ
# ==============================
#
# 1998 by Benjamin Kaiser
# Letztes Update: 20.03.1998
#
# -------------------------------------------------------------------------
#
dialog=dialog
OLDDIR=$PWD
SPOOLDIR=/var/spool
BINDIR=/usr/local/lib
HOMEDIR=/home
exec 2> /tmp/tracefile
set -x
rm -f /tmp/FIDO*
#
# MAINLOOP
#
echo -e "\a"
$dialog --backtitle "AFU-BBS Dortmund +49-231-6790235 ## running under LinuX ##" \
--msgbox "\n\
########## ######### #### ####
#### #### #### #### ####
#### #### #### #### ####
########## ###### #### ####
#### #### #### ##########
-------------------------------------------
Tel# Fido-Node# PROTOKOL
=============================================
+49-0231-6790235 2:2448/417 V34+
+49-0231-6790235 2:2448/417 X75
---------------------------------------------
SysOp: Andre Vaupel 2:2448/417
CoSysOp: Benjamin Kaiser 2:2448/417.8
" 20 49
#
#
$dialog --backtitle "AFU-BBS Dortmund +49-231-6790235 ## running under LinuX ##" \
--msgbox "\nWillkommen!\n
Die Mailbox ist nur mit HTML-Oberflaeche in Betrieb. Um auf diese
Oberflaeche zugreifen zu koennen, musst Du erst eine Verbindung
per PPP aufbauen. Eine Anleitung fuer die unterschiedlichen
Betriebssysteme findest Du gleich im naechsten Menue. Du kannst
die Software dann downloaden. Zusaetzlich findest Du noch
informationen zum FIDONET, zu POINTS und zu unserem INTERNET-
ZUGANG!" 15 69
#
#
while [ 0 ]; do
$dialog --backtitle "AFU-BBS Dortmund +49-231-6790235 ## running under LinuX ##" \
--title "Hauptmenue" --menu "\n\
SysOp: Andre Vaupel CoSysOp: Benjamin Kaiser " 20 60 11 \
"INFO" "Was bietet diese Mailbox?" \
"POINTINFO" "Wie werde Ich Point im FIDO-NET?" \
"FIDOINFO" "Was ist das FIDO-NET?" \
"USERANT" "Userantrag fuer die AFU-BBS" \
"DOS" "Zugangssoftware fuer DOS" \
"WIN95" "Zugangssoftware fuer Win95" \
"OS/2" "Zugangssoftware fuer OS/2" \
"LINUX" "Zugangssoftware fuer LinuX" \
"SYSOP" "Mail an den SysOp schreiben" \
"COSYSOP" "Mail an den CoSysOp schreiben" \
"LOGOFF" "Verbindung beenden" 2> /tmp/selection
if [ $? = 1 -o $? = 255 ]; then
rm -f /tmp/selection
clear
exit
fi
SELECT="`cat /tmp/selection`"
rm /tmp/selection
#
# INFOS UEBER DIE BOX
#
case $SELECT in
INFO)
$dialog --backtitle "AFU-BBS Dortmund +49-231-6790235 ## running under LinuX ##" \
--title "Was bietet diese Mailbox?" --textbox "$PWD/info" 20 79;;
#
# WAS IST EIN POINT???
#
POINTINFO)
$dialog --backtitle "AFU-BBS Dortmund +49-231-6790235 ## running under LinuX ##" \
--title "Wie werde Ich Point im FIDO-NET?" --textbox "$PWD/point" 20 79;;
#
# WAS IST DAS FIDO-NET???
#
FIDOINFO)
$dialog --backtitle "AFU-BBS Dortmund +49-231-6790235 ## running under LinuX ##" \
--title "Was ist das FIDO-NET???" --textbox "$PWD/fido" 20 79;;
#
# Userantrag downloaden
#
USERANT)
dialog --clear
#=========================================================================
# Userantrag downloaden
#-------------------------------------------------------------------------
#-------------------------------------------------------------------------
# DOwnload fertig
#=========================================================================
;;
#
# ZUGANGSSOFTWARE FUER DOS
#
DOS)
$dialog --backtitle "AFU-BBS Dortmund +49-231-6790235 ## running under LinuX ##" \
--title "Zuganssoftware für DOS" --menu "Software zum Downloaden:" 8 65 1 \
"XP" "Pointsoftware CrossPoint 3.11" 2>/tmp/select
SELECT="`cat /tmp/select`"
rm /tmp/select
case $SELECT in
XP)
dialog --clear
#=========================================================================
# CrossPoint Downloaden
#-------------------------------------------------------------------------
#-------------------------------------------------------------------------
# DOWNLOAD BEENDEN
#=========================================================================
;;
esac;;
#
# ZUGANGSSOFTWARE FUER WINDOWS 95
#
WIN95)
$dialog --backtitle "AFU-BBS Dortmund +49-231-6790235 ## running under LinuX ##" \
--title "Zugangssoftware für Windows 95" --menu "Software zum Downloaden:" 10 65 3 \
"WNAV" "Netscape Navigator 3.03 fuer Windows 95" \
"WINPOINT" "Pointsoftware WinPoint" \
"WPPP" "Infofile - wie installiere ich die Zugangssoftware?" 2>/tmp/select
SELECT="`cat /tmp/select`"
rm /tmp/select
case $SELECT in
WNAV)
dialog --clear
#========================================================================
# DEN NETSCAPE NAVIGATOR FÜR WINDOWS 95 DOWNLOADEN
#------------------------------------------------------------------------
#------------------------------------------------------------------------
# ENDE DES NETSCAPE NAVIGATOR DOWNLOADS
#========================================================================
;;
WINPOINT)
dialog --clear
#========================================================================
# WINPOINT DOWNLOADEN
#------------------------------------------------------------------------
#------------------------------------------------------------------------
# ENDE DES DOWNLOADS
#========================================================================
;;
WPPP)
dialog --clear
#========================================================================
# INFO-TXTFILE, DER BESCHREIBT, WIE MAN DEN DIALER INSTALLIERT (W95)
#------------------------------------------------------------------------
#------------------------------------------------------------------------
# ENDE DES TXTFILE DOWNLOADS
#========================================================================
;;
esac;;
#
# ZUGANGSSOFTWARE FÜR OS/2
#
OS/2)
$dialog --backtitle "AFU-BBS Dortmund +49-231-6790235 ## running under LinuX ##" \
--title "Zugangssoftware fuer OS/2" --menu "Software zum Downloaden:" 10 65 3 \
"OS2NAV" "Netscape Navigator fuer OS/2" \
"FPOINT" "Point-Soft fuer OS/2 (Fantasy Point)" \
"OPPP" "Infofile - wie installiere ich die Zugangssoftware?" 2>/tmp/select
SELECT="`cat /tmp/select`"
rm /tmp/select
case $SELECT in
OS2NAV)
dialog --clear
#========================================================================
# OS/2 NETSCAPE NAVIGATOR DOWNLOADEN
#------------------------------------------------------------------------
#------------------------------------------------------------------------
# ENDE DES NAVIGATOR DOWNLOADS
#========================================================================
;;
FPOINT)
dialog --clear
#========================================================================
# DOWNLOAD VON FANTASY-POINT
#------------------------------------------------------------------------
#------------------------------------------------------------------------
# ENDE DES DOWNLOADS
#========================================================================
;;
OPPP)
dialog --clear
#========================================================================
# Info-File zur installation der Zugangssoftware unter OS/2
#------------------------------------------------------------------------
#------------------------------------------------------------------------
# ENDE DES DOWNLOADS
#========================================================================
;;
esac;;
#
# LINUX
#
LINUX)
$dialog --backtitle "AFU-BBS Dortmund +49-231-6790235 ## running under LinuX ##" \
--title "Zugangssoftware für LinuX" --menu "Software zum Downloaden:" 10 65 3 \
"LNAV" "Netscape Navigator fuer LinuX" \
"LXPOINT" "Pointsoftware fuer LinuX (LXPOINT)" \
"LPPP" "Infofile - wie installiere ich die Zugangssoftware?" 2>/tmp/select
SELECT="'cat /tmp/select'"
rm /tmp/select
case $SELECT in
LNAV)
dialog --clear
#========================================================================
# Netscape Navigator für LinuX
#------------------------------------------------------------------------
#------------------------------------------------------------------------
# ENDE DES DOWNLOADS
#========================================================================
;;
LXPOINT)
dialog --clear
#========================================================================
# LXPOINT DOWNLOADEN
#------------------------------------------------------------------------
#------------------------------------------------------------------------
# ENDE DES DOWNLOADS
#========================================================================
;;
LPPP)
dialog --clear
#========================================================================
# Infofile zur Einrichtung der Zugangssoft (LinuX)
#------------------------------------------------------------------------
#------------------------------------------------------------------------
# ENDE DOWNLOAD
#========================================================================
;;
esac;;
#
# MAIL AN DEN SYSOP
#
SYSOP)
dialog --clear
# ========================================================================
# MAIL AN DEN SYSOP:
#-------------------------------------------------------------------------
#-------------------------------------------------------------------------
# ENDE DES MAILSCHREIBENS
#=========================================================================
;;
#
# MAIL AN DEN COSYSOP:
#
COSYSOP)
dialog --clear
#=========================================================================
# MAIL AN DEN COSYSOP:
#-------------------------------------------------------------------------
#-------------------------------------------------------------------------
# ENDE DES MAILSCHREIBENS
#=========================================================================
;;
#
# END
#
LOGOFF)
rm -f /tmp/select
rm -f /tmp/tracefile
rm -f /tmp/selection
clear
exit;;
#
# END OF MAINLOOP
#
esac
done
------------------------------------------------
So long,
Benny
--
Um aus der Liste ausgetragen zu werden, eine Mail an majordomo(a)suse.com
schicken, mit dem Text: unsubscribe suse-linux