Hello world,

It is about several month that I am trying to port a BBX3 application
running on a SCO server on a RedHat 6.2 Linux.

I have solved almost all the problems related to printers, fax server
and the system in general.
Unfortunately I continue to have problems with terminal emulation.

I don't have experience with terminals at all so I don't' know what are
the mechanisms involved between terminal emulators and the server during 
the session setup and communication.

What I can do is to explain my setup and problems.
The setup is: A Linux RedHat 6.2 server running BBX and a series of
Windoze PCs running netterm as terminal emulator.
 
First al all I have disabled pts filesystem because terminal names
/dev/pts/x wasn't recognized by BBX3.

next I have edited the config.bbx as follow:

stblen=4096
TIMEOUT=0
PREFIX /usr/bbx/ /usr/bbx/utils/ /usr/bbx/rw/ /u/work/ /u/dati/
/u1/vend/ /u1/co
nt/ /usr/bbx/prog_2000/ /u1/trasf/
ALIASES=100
FCBS=40
CIBS=40
alias T0 /dev/tty1 linbbx
alias T1 /dev/tty2 linbbx
alias T2 /dev/tty3 linbbx
alias T3 /dev/tty4 linbbx
alias T4 /dev/tty5 linbbx
alias T5 /dev/tty6 linbbx
alias TA /dev/ttyp0 linbbx
alias TB /dev/ttyp1 linbbx
alias TC /dev/ttyp2 linbbx
alias TD /dev/ttyp3 linbbx
...
alias LP ">lpr -Plp2 >& /dev/null" printer
SPCOLS=255,lock=/tmp/LCK.LP,wait=0
alias TP /dev/ttyp35 term
alias P1 ">lpr -Plp0 >& /dev/null" printer
SPCOLS=255,lock=/tmp/LCK.P1,wait=0
alias P2 ">lpr -Plp1 >& /dev/null" printer
SPCOLS=255,lock=/tmp/LCK.P2,wait=0
alias P3 ">lpr -Plp >& /dev/null" printer
SPCOLS=255,lock=/tmp/LCK.P3,wait=0

The linbbx entry that I have inserted into /etc/terminal is (thanks to
Keith Smith):

#
# linbbx - Linux Console for BBx/4
#
linbbx|linux-nam|Linux Console for BBX:\
        :AA=1705:\
        :DL=\E[3~:\
        :EN=\E[4~:\
        :GS=\E(0:\
        :GE=\E(B:\
        :GV=x:\
        :GH=q:\
        :G1=k:\
        :G2=l:\
        :G3=m:\
        :G4=j:\
        :GU=v:\
        :GD=w:\
        :GC=n:\
        :GL=u:\
        :GR=t:\
        :HM=\E[1~:\
        :IN=\E[2~:\
        :PD=\E[6~:\
        :PU=\E[5~:\
        :RA=\E[?7l:\
        :SA=\E[?7h:\
        :do=^J:\
        :do=\E[B:\
        :co#80:\
        :li#25:\
        :cl=\E[H\E[J:\
        :cl=\E[H\E[2J:\
        :sf=\ED:\
        :sb=\EM:\
        :le=^H:\
        :bs:\
        :cm=\E[%i%d;%dH:\
        :nd=\E[C:\
        :up=\E[A:\
        :ce=\E[K:\
        :cd=\E[J:\
        :so=\E[7m:\
        :se=\E[27m:\
        :us=\E[4m:\
        :ue=\E[m:\
        :md=\E[1m:\
        :mr=\E[7m:\
        :mb=\E[5m:\
        :me=\E[m:\
        :ll=\E[1;25r\E[25;1H:\
        :al=\E[L:\
        :dc=\E[P:\
        :dl=\E[M:\
        :ho=\E[H:\
        :is=\E[1;25r\E[25;1H\E[?7l:\
        :it#8:\
        :ku=\E[A:\
        :kd=\E[B:\
        :kr=\E[C:\
        :kl=\E[D:\
        :kb=^H:\
        :kh=\E[1~:\
        :k1=\E[[A:\
        :k2=\E[[B:\
        :k3=\E[[C:\
        :k4=\E[[D:\
        :k5=\E[[E:\
        :k6=\E[17~:\
        :k7=\E[18~:\
        :k8=\E[19~:\
        :k9=\E[20~:\
        :kA=\E[21~:\
        :kB=\E[23~:\
        :kC=\E[24~:\
        :pt:\
        :sr=\EM:\
        :vt#3:\
        :xn:\
        :km:\
        :bl=^G:\
        :vi=\E[?25l:\
        :ve=\E[?25h:\
        :vs=\E[?25h:\
        :ti=\E[r\E[H:\
        :sc=\E7:\
        :rc=\E8:\
        :cs=\E[%i%d;%dr:

and the application is running in this way:

cd /usr/bbx
TERMCAP=/etc/termcap
export TERMCAP
TERM=linbbx
export TERM
exec ./bbx3 -q -m2000 SETUP
exit

Ok! this is the setup.
On a linux console all is running correctly. Both characters, keyboard
and colors.

When I try to use netterm some problems raise.

Netterm is configured with ansi emulation and keys with SCE that is a
little modification 
of sco-ansi keyboard emulation.
All seems to work. Masks are Ok, keyboard is ok.
The problem is colors that aren't displayed.  

Does anyone has any suggetion?

Regards 

Davide
-- 

                       /\                              /-+-/
                      /  \                               |
                       || (------------------------------|---------) 
                       || | Davide Dozza, PhD                 /~\  | 
 o       o             ===| Yacme Srl                         | |  |
  \_____/                 | Via Trauzzi 13/D                  \_/  | 
  /=O=O=\     _______     | I-40127 Bologna Italy                  | 
 /   ^   \   /\\\\\\\\    | Phone: 051-512681    Fax: 051-512681   | 
 \ \___/ /  /\   ___  \   | e-mail: [EMAIL PROTECTED]         | 
  \_ V _/  /\   /\\\\  \==|                                        | 
    \  \__/\   /\ @_/  /  (----------------------------------------) 
     \____\____\______/         (*)           (*)           (*) 
=====^==^=====^=====^======^===^===^=======^=^==^=====^====^=^======

Reply via email to