(OT) screen garbled BackupEdge install on OSR 5.0.7

Brian K. White brian at aljex.com
Tue Feb 3 22:19:49 PST 2009


----- Original Message ----- 
From: "Fairlight" <fairlite at fairlite.com>
To: <filepro-list at lists.celestial.com>
Sent: Tuesday, February 03, 2009 5:59 PM
Subject: Re: (OT) screen garbled BackupEdge install on OSR 5.0.7


> Confusious (Alias for filepro) say:
>> Hi Bill.
>> 
>> My recollection is that XTERM from SCO and Linux have very little relation
>> from a capabilities and terminfo standpoint. 
> 
> I'd have to look at the entries to back up any technical claims to the
> contrary, but anecdotally, xterm is the one entry I can actually depend on
> working more or less correctly with PuTTY--surpassing vt100 by far in terms
> of stability and usability.  It's been my experience that xterm is the best
> one to try.  Obviously it's not working so well for Bill, but I surely
> wouldn't hold out hope for SCO's vt100 emulation doing a better job. :/

The xterm termcap and terminfo entries on SCO boxen are correct for SCO's default ancient X11R5, which is somewhat different from everyone elses X11R6.
My experience has een the opposite of yours. xterm being almost as meaningless as a "definition" as "ansi" where several vendors all have slightly different versions, and where even within one platform the definition changes over time  from x11r5, x11r6, xfree86<=3.something, xfre86>3.something, xorg.

I have run into backupedge and specifically the recoveredge2 subcompoent going into a mismatched alternate character set mode too. I get proper behaviour in BE on OSR5 when I'm using a terminal that is _accurately_ defined by the terminfo on the sco box.
This basically means a good scoansi emulator with either a latin-1 or a cp437 font loaded, depending on the current setting of mapchan in your session on the sco box (cp437 if you had run "mapchan -n" in profile or if /etc/ttys for your tty defines no character set trnslation). putty qualifies as "good enough" with the right settings, where "the right settings" depends on what font you're using, or FacetWin or Anzio.
Or it means installing my own rxvt and linux termcap & terminfo definitions on the sco box first, and, ofcourse, there is a difference between rxvt<=2.6 and rxvt>2.6 -sigh-
Coming from one of the dozen different xterm-like apps on a linux box, to a sco box, and setting TERM=xterm, is no good. And of course there is no linux definition on sco, and setting TERM=vt220 when your term is really linux _should_ be good enough in most cases but it's not.

In BE , if you're looking at the garbled screen, you can blindly navigate to the bottom option on the top-left menu, which is "exit" in most apps including this one.

You can them blindly type in "tput rmacs" to get back out of alt char set mode.

If you're using putty from a windows desk you can:
Install the Andale Mono font (one of the microsoft core fonts that you can download the installer from sourceforge, look for andale32.exe) this is a fixed-width font with cp437 characters.

Install this registry entry which contains a template putty session with good settings for OSR5 sco ansi.
SCO_SSH.reg:
---snip---
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\SCO_SSH]
"Present"=dword:00000001
"HostName"=""
"LogFileName"="putty.log"
"LogType"=dword:00000000
"LogFileClash"=dword:ffffffff
"LogFlush"=dword:00000001
"SSHLogOmitPasswords"=dword:00000001
"SSHLogOmitData"=dword:00000000
"Protocol"="ssh"
"PortNumber"=dword:00000016
"CloseOnExit"=dword:00000001
"WarnOnClose"=dword:00000001
"PingInterval"=dword:00000003
"PingIntervalSecs"=dword:00000014
"TCPNoDelay"=dword:00000001
"TCPKeepalives"=dword:00000000
"TerminalType"="ansi"
"TerminalSpeed"="38400,38400"
"AddressFamily"=dword:00000000
"ProxyExcludeList"=""
"ProxyDNS"=dword:00000001
"ProxyLocalhost"=dword:00000000
"ProxyMethod"=dword:00000000
"ProxyHost"="proxy"
"ProxyPort"=dword:00000050
"ProxyUsername"=""
"ProxyPassword"=""
"ProxyTelnetCommand"="connect %host %port\\n"
"Environment"=""
"UserName"=""
"LocalUserName"=""
"NoPTY"=dword:00000000
"Compression"=dword:00000000
"AgentFwd"=dword:00000000
"ChangeUsername"=dword:00000000
"Cipher"="blowfish,WARN,aes,3des,des"
"KEX"="dh-gex-sha1,dh-group14-sha1,dh-group1-sha1,WARN"
"RekeyTime"=dword:0000003c
"RekeyBytes"="1G"
"AuthTIS"=dword:00000000
"AuthKI"=dword:00000001
"SshNoShell"=dword:00000000
"SshProt"=dword:00000003
"SSH2DES"=dword:00000000
"PublicKeyFile"=""
"RemoteCommand"=""
"RFCEnviron"=dword:00000000
"PassiveTelnet"=dword:00000000
"BackspaceIsDelete"=dword:00000000
"RXVTHomeEnd"=dword:00000000
"LinuxFunctionKeys"=dword:00000005
"NoApplicationKeys"=dword:00000000
"NoApplicationCursors"=dword:00000000
"NoMouseReporting"=dword:00000000
"NoRemoteResize"=dword:00000000
"NoAltScreen"=dword:00000000
"NoRemoteWinTitle"=dword:00000000
"NoRemoteQTitle"=dword:00000001
"NoDBackspace"=dword:00000000
"NoRemoteCharset"=dword:00000000
"ApplicationCursorKeys"=dword:00000000
"ApplicationKeypad"=dword:00000000
"NetHackKeypad"=dword:00000000
"AltF4"=dword:00000000
"AltSpace"=dword:00000000
"AltOnly"=dword:00000000
"ComposeKey"=dword:00000000
"CtrlAltKeys"=dword:00000001
"TelnetKey"=dword:00000000
"TelnetRet"=dword:00000001
"LocalEcho"=dword:00000002
"LocalEdit"=dword:00000002
"Answerback"="PuTTY"
"AlwaysOnTop"=dword:00000000
"FullScreenOnAltEnter"=dword:00000001
"HideMousePtr"=dword:00000000
"SunkenEdge"=dword:00000000
"WindowBorder"=dword:00000001
"CurType"=dword:00000000
"BlinkCur"=dword:00000000
"Beep"=dword:00000001
"BeepInd"=dword:00000000
"BellWaveFile"=""
"BellOverload"=dword:00000001
"BellOverloadN"=dword:00000005
"BellOverloadT"=dword:000007d0
"BellOverloadS"=dword:00001388
"ScrollbackLines"=dword:00000000
"DECOriginMode"=dword:00000000
"AutoWrapMode"=dword:00000001
"LFImpliesCR"=dword:00000000
"DisableArabicShaping"=dword:00000000
"DisableBidi"=dword:00000000
"WinNameAlways"=dword:00000001
"WinTitle"=""
"TermWidth"=dword:00000050
"TermHeight"=dword:00000019
"Font"="Andale Mono"
"FontIsBold"=dword:00000000
"FontCharSet"=dword:00000000
"FontHeight"=dword:00000012
"FontVTMode"=dword:00000001
"UseSystemColours"=dword:00000000
"TryPalette"=dword:00000000
"ANSIColour"=dword:00000001
"Xterm256Colour"=dword:00000001
"BoldAsColour"=dword:00000001
"Colour0"="187,187,187"
"Colour1"="255,255,255"
"Colour2"="0,0,0"
"Colour3"="85,85,85"
"Colour4"="0,0,0"
"Colour5"="0,255,0"
"Colour6"="0,0,0"
"Colour7"="85,85,85"
"Colour8"="187,0,0"
"Colour9"="255,85,85"
"Colour10"="0,187,0"
"Colour11"="85,255,85"
"Colour12"="187,187,0"
"Colour13"="255,255,85"
"Colour14"="0,0,187"
"Colour15"="85,85,255"
"Colour16"="187,0,187"
"Colour17"="255,85,255"
"Colour18"="0,187,187"
"Colour19"="85,255,255"
"Colour20"="187,187,187"
"Colour21"="255,255,255"
"RawCNP"=dword:00000000
"PasteRTF"=dword:00000000
"MouseIsXterm"=dword:00000000
"RectSelect"=dword:00000000
"MouseOverride"=dword:00000001
"Wordness0"="0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0"
"Wordness32"="0,1,2,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1"
"Wordness64"="1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,2"
"Wordness96"="1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1"
"Wordness128"="1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1"
"Wordness160"="1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1"
"Wordness192"="2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2"
"Wordness224"="2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2"
"LineCodePage"="CP437"
"CJKAmbigWide"=dword:00000000
"UTF8Override"=dword:00000001
"Printer"=""
"CapsLockCyr"=dword:00000000
"ScrollBar"=dword:00000000
"ScrollBarFullScreen"=dword:00000000
"ScrollOnKey"=dword:00000000
"ScrollOnDisp"=dword:00000000
"EraseToScrollback"=dword:00000000
"LockSize"=dword:00000002
"BCE"=dword:00000001
"BlinkText"=dword:00000000
"X11Forward"=dword:00000000
"X11Display"="localhost:0"
"X11AuthType"=dword:00000001
"LocalPortAcceptAll"=dword:00000000
"RemotePortAcceptAll"=dword:00000000
"PortForwardings"=""
"BugIgnore1"=dword:00000000
"BugPlainPW1"=dword:00000000
"BugRSA1"=dword:00000000
"BugHMAC2"=dword:00000000
"BugDeriveKey2"=dword:00000000
"BugRSAPad2"=dword:00000000
"BugPKSessID2"=dword:00000000
"StampUtmp"=dword:00000001
"LoginShell"=dword:00000001
"ScrollbarOnLeft"=dword:00000000
"BoldFont"=""
"BoldFontIsBold"=dword:01000000
"BoldFontCharSet"=dword:00000007
"BoldFontHeight"=dword:00000000
"WideFont"=""
"WideFontIsBold"=dword:00000000
"WideFontCharSet"=dword:0012c418
"WideFontHeight"=dword:00000004
"WideBoldFont"=""
"WideBoldFontIsBold"=dword:00000000
"WideBoldFontCharSet"=dword:00000000
"WideBoldFontHeight"=dword:00000000
"ShadowBold"=dword:00000000
"ShadowBoldOffset"=dword:00000001
---snip---

Launch putty, load the new "SCO_SSH" session, manually enter the host address,

Then once on the remote system, depeding on what's in your /etc/default/mapchan, /etc/profile, and ~/.profile you might possibly still need to manually run:
mapchan -n
and
TERM=ansi
Unlikely you'll need to, but harmless to do whether it was needed or not.

At this point you should have a fully working terminal including colors, alternate character sets, F-keys, Del key for break, backspace that works as expected, etc...

I just ran through exactly these steps and fired up edgemenu and navigated to the recoveredge screens too and I can find no glitches.

Part of this is the TERM=ansi specifically uses an reduced ansi definition in the default termcap & terminfo, which is different from BOTH scoansi-new and scoansi-old. scoansi is just an alias for either -old or -new depending on what settings you chose when/if you ever ran "mkdev scoansi" or depending on if the box is older than 5.0.6 where scoansi is just scoansi-old.

Of course, if you "don't do windows" then have fun finding a good scoansi emulator on linux or just upload and install termcap & terminfo definitions to the sco box yourself that accurately describes whatever terminal you are using from linux/freebsd/apple.

There is basically nothing in the stock osr5 termcap & terminfo that accurately describes anything on a typical linux or apple box. So it's emulate scoansi or bust. You have to add any other terminals yourself, unless you really are using an old wyse50 terminal or one of the other ancient real hardware terminals in there!


The FreeBSD console isn't pretty but it's functional.
cons25 is very close to sco's interpretation of ansi,
just as it claims in the kernel config file. 
If you telnet or ssh right from a freebsd console,
and then manually set TERM=ansi (from "cons25"),
It works well enough for sysadmin purposes.

The line-drawcharacters show up as
ZDDD?
3   3
3   3
CDDDY
3   3
3   3
@DDDY

But the arrows, backspace, Del for break, f-keys and colors all work.
So you can navigate edgemneu and recoveredge just fine.

-- 
Brian K. White      brian at aljex.com       http://profile.to/KEYofR
+++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++.
filePro  BBx    Linux  SCO  FreeBSD    #callahans  Satriani  Filk!



More information about the Filepro-list mailing list