• Please review our updated Terms and Rules here

Termcaps for VT100

aplmak

Experienced Member
Joined
Feb 13, 2012
Messages
132
Location
United States
Hello all.. I am not good with Termcaps and I am having an issue with this description. I need to be able to use my "backspace" or "del" key on my laptop to make corrections. It doesn't currently work with this termcap description.. anyone out there know where the modification needs to go to perhaps achieve this?

# Termcap for DEC VT 100 terminal
#
d1|vt100|DEC VT100:\
:co#80:li#24:am:cl=50\E[;H\E[2J:bs:cm=5\E[%i%2;%2H:nd=\E[C:up=\E[A:\
:ce=3\E[K:cd=50\E[J:so=\E[7m:se=\E[m:us=\E[4m:ue=\E[m:\
:is=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:ks=\E[?1h\E=:ke=\E[?1l\E>:\
:if=/usr/lib/tabset/vt100:ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:\
:kh=\E[H:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS: pt:sr=5\EM: <---- I had to put a space between the EOS and the pt because a face would populate.
:am:le=^H:bs:li#24:co#80:cm=\EY%+ %+ :cd=\Ek:ce=\EK:nd=^F:\
:up=^Z:cl=^L:ll=^A:kl=^U:kr=^F:kd=^J:ku=^Z:kh=^A:\
:so=^N:se=^O:us=^N:ue=^O:is=^O\E0`:vs=^O\E0P:ve=^O\E0`:



Thanks for any help!!!
Matt
 
I would ideally love to find a terminal emulator program that works with my specific terminal an Altos III. This is the termcap for that terminal. If I dump the ROM from the terminal board how could I get a terminal emulator program to work with the ROM file?? Any suggestions?? I've tried all different configurations on my server with various terminal emulations and VT100 works the best out of all of them. I've tried the Wyse, other VT's and so on.. the original terminal works the best of course..

# Termcap for Altos III terminal
#
a3|altos3|alt3|altos 3|Altos III:\
:cd=\E[J:ce=\E[K:cl=\E[;H\E[2J:\
:up=\E[1A:do=\E[1B:nd=\E[1C:bc=\E[1D:cm=\E[%i%d;%dH:ho=\E[H:\
:al=\E[L:dl=\E[M:ic=\E[@:dc=\E[P:im=:ei=:\
:co#80:li#24:ug#0:sg#0:bs: pt:sr=\EM:\ <--- had to add a space to avoid the emoji..
:so=\E[7m:se=\E[m:us=\E[4m:ue=\E[m:\
:is=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:if=/usr/lib/tabset/vt100:\
:ku=\E[A:kd=\E[B:kr=\E[C:kl=\E[D:kh=\E[H:kb=^H:cr=^M:\
:XU=^Aq\r:XD=^Ar\r:XR=^As\r:XL=^At\r:\
:HL=^AP\r:\
:IS=\E[@:DE=\E[P:IL=\E[L:DL=\E[M:NS=\E[S: PS=\E[T:\ <--- had to add a space to avoid the emoji..
:k0=^A@\r:k1=^AA\r:k2=^AB\r:k3=^AC\r:\
:k4=^AD\r:k5=^AE\r:k6=^AF\r:k7=^AG\r:\
:k8=^AH\r:k9=^AI\r:kA=^AJ\r:kB=^AK\r:\
:kC=^AL\r:kD=^AM\r:kE=^AN\r:kF=^AO\r:\
:CO=\E[>5l:CF=\E[>5h:HP=^AP\r:HN#31:\
:vb=\E[?5h\200\200\200\200\200\200\200\200\200\200\200\200\200\E[?5l:\
:ti=\E[?7l:te=\E[?7h:
#
 
This is what it has in the manuals for text editor while in the mail program... of course it doesn't have VT100
 

Attachments

  • IMG_8540.jpg
    IMG_8540.jpg
    56.9 KB · Views: 3
  • IMG_8541.jpg
    IMG_8541.jpg
    45.2 KB · Views: 4
  • IMG_8542.jpg
    IMG_8542.jpg
    41.8 KB · Views: 4
  • IMG_8543.jpg
    IMG_8543.jpg
    41.3 KB · Views: 4
To get the backspace key to work correctly, you don't need to change termcap. Behaviour is set at runtime with stty.

Run stty erase "^?" to get sane backspace behaviour when connecting over serial. Do not run this when connecting locally, as the local console is usually configured correctly by default.
 
Thank you sir. :) I will give that a try. I do see in the .profile that is created for each users directory there is a line that contains the "stty"

stty -parity echoe erase "^h"

So I can probably just adjust that in the ".profile" file for the user?
 
On my test machine, running this command on the local console (keyboard/screen) messes up backspace. It only works correctly for serial connections.

Running stty unconditionally in .profile works as long as the user in question never connects locally.
 
Hmmmm... I did try it in .profile and edited it to exactly what you had and it didn't work.. Not sure if I did it correctly. I do switch between my laptop and the terminal. Not that I use the mail program but would be nice to have a backspace or delete button of some kind to work. The other programs such as the word processor, calendar, all the keys work perfectly. It's only the mail program.. It might have some funny editor built into it as mentioned in the manual pages above. Not sure how to do the modifications properly that you mention. Your the expert at this.. I'm horrible at it..
 
In the days when I might connect to a variety of Unix systems from a variety of terminals I took to keeping a couple shell scripts named '\010' and '\177' in a directory in my $PATH, each with the appropriate stty erase command; the point was that if the Unix system's notion of the erase character didn't match my terminal's, then the button I was pressing for "erase" was emitting the code I wanted to use and if it wasn't the erase character it would be taken by the shell as a command name
 
So this is what I've done.. I have tried various scenarios.. Going back to the begining.

#1. The first photo is stty -a from the terminal which is assigned in pconfig as an "altos3".

#2. The second photo show's the stty -a which is setup on a remote connection on a laptop via IP as a vt100 in pconfig.

#3. And finally the last is the few settings in hyperterminal that you can adjust for the backspace/del characters..I have tried all three. I made sure to save first, disconnect and retry..

Perhaps I am not doing something right. I just have a feeling it is pulling termcaps that are assigned to that port I am connected to and not based on the user's stty settings.

Now if I go in a word processing program which is Uniplex the backspace and arrow keys all work just perfectly fine in both scenarios. And the only reason I use Hyperterminal and not Putty or something else is because it get's me as close as possible with the vt100 emulation to looking exactly what a terminal would look like. It draws the lines around the menu system perfectly like the terminal. I have tried a whole bunch of terminal programs and they stink.. Hyperterminal comes the closest. I have tried all different terminal types such as Wyse, and Televideo's and nothing worked well enough.

So if backspace works fine in the application I pull up which is Uniplex.. then it has to be a termcap issue with the termcap file for the Mail program I am using. For kicks I set the port to Altos III and the backspace works just fine. The problem is that it doesn't draw the menu system properly as it should. So really I think this is a termcap thing. I think that it pulls the terminal settings (termcap file) from the folder where the program resides. The mail program has it's own termcap. I will attach it here too. There has to be a modification in the very bottom I believe for the VT100 terminal cap file..
 

Attachments

  • Terminal stty.jpg
    Terminal stty.jpg
    121.3 KB · Views: 9
  • remote serial port.jpg
    remote serial port.jpg
    62.3 KB · Views: 7
  • Hyperterminal settings.jpg
    Hyperterminal settings.jpg
    128.9 KB · Views: 8
  • mailtermc.txt
    12.9 KB · Views: 5
So it was the termcap file in the mail program!!!!! I simply copied the Altos III terminal caps entries to the VT100 entry area and works like a charm now!!!!
 
This is such an old version of Xenix.. It is a custom Xenix 3.0 for Altos machines.. so it's really old. Doesn't have all the new fangled things like today. And it's qwerky how they did stuff then and I guess they may have had termcap files for each program.... that's what it appears like!
 
If there is anyone good at termcaps please PM me... I need assistance with a few other termcaps for a few other applications.. The termcap files are all greek to me. There has to be someone out there that just loved to modify these files all the time (joking)...

Thanks in advance!
Matt
 
I found a great link for termcaps for these old machines running Xenix with a "termcap" file typically located in the /etc folder.


I simply had to add these entries to the vt100 description in the termcap file

:up=\E[1A:do=\E[1B:nd=\E[1C:bc=\E[1D:cm=\E[%i%d;%dH:ho=\E[H:\
 
And actually this....

:ku=\E[A:kd=\E[B:kr=\E[C:kl=\E[D:kh=\E[H:kb=^H:cr=^M:\ (keyboard up, keyboard right, and so on)

Problem is when I do it works with my application but screws up my menu system.. grrrrr..... very frustrating.. I've met people at VCF East that used to write termcaps a lot... wish I grabbed their contact info...
 
When you log in type:
echo $TERM

and hit enter. What does it say?
Code:
Here's an altos3 termcap I found laying about. Use the altos2 and altos3 entries (altos3 builds on the altos2 :tc=altos2:)
altos2|alt2|altos-2|altos II:\
    :co#80:it#8:li#24:sg#0:ug#0:\
    :*5=^Am\r:*8=^An\r:FM=^A`\r:FN=^Aa\r:FO=^Ab\r:FP=^Ac\r:\
    :FQ=^Ad\r:FR=^Ae\r:FS=^Af\r:FT=^Ag\r:FU=^Ah\r:FV=^Ai\r:\
    :FW=^Aj\r:FX=^Ak\r:RA=\E[?7l:SA=\E[?7h:al=\E[L:cd=\E[J:\
    :ce=\E[K:cl=\E[H\E[2J:cm=\E[%i%d;%dH:cr=^M:dc=\E[P:\
    :dl=\E[M:do=\E[1B:ei=:ho=\E[H:ic=\E[@:\
    :if=/usr/share/tabset/vt100:im=:\
    :is=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:k0=^AI\r:\
    :k1=^A@\r:k2=^AA\r:k3=^AB\r:k4=^AC\r:k5=^AD\r:k6=^AE\r:\
    :k7=^AF\r:k8=^AG\r:k9=^AH\r:kA=^AJ\r:kB=^AK\r:kC=^AL\r:\
    :kD=^AM\r:kE=^AN\r:kF=^AO\r:kb=^H:kd=\E[B:kh=\E[f:kl=\E[D:\
    :kr=\E[C:ku=\E[A:le=^H:me=\E[m:nd=\E[1C:nw=^M^J:se=\E[m:\
    :sf=^J:so=\E[7m:ta=^I:ue=\E[m:up=\E[1A:us=\E[4m:
# (altos3: had extension capabilities
#    :c0=^A`\r:c1=^Aa\r:c2=^Ab\r:c3=^Ac\r:\
#    :c4=^Ad\r:c5=^Ae\r:c6=^Af\r:c7=^Ag\r:\
#    :c8=^Ah\r:c9=^Ai\r:cA=^Aj\r:cB=^Ak\r:\
#    :cC=^Al\r:cD=^Am\r:cE=^An\r:cF=^Ao\r:
#    :XU=^Aq\r:XD=^Ar\r:XR=^As\r:XL=^At\r:\
#    :HL=^AP\r:SP=\E[i:\
#    :IS=\E[@:DE=\E[P:IL=\E[L:NS=\E[S:PS=\E[T:\
altos3|altos5|alt3|alt5|altos-3|altos-5|altos III or V:\
    :mb=\E[5p:me=\E[p:sr=\EM:tc=altos2:
 
When you log in type:
echo $TERM

and hit enter. What does it say?
Code:
Here's an altos3 termcap I found laying about. Use the altos2 and altos3 entries (altos3 builds on the altos2 :tc=altos2:)
altos2|alt2|altos-2|altos II:\
    :co#80:it#8:li#24:sg#0:ug#0:\
    :*5=^Am\r:*8=^An\r:FM=^A`\r:FN=^Aa\r:FO=^Ab\r:FP=^Ac\r:\
    :FQ=^Ad\r:FR=^Ae\r:FS=^Af\r:FT=^Ag\r:FU=^Ah\r:FV=^Ai\r:\
    :FW=^Aj\r:FX=^Ak\r:RA=\E[?7l:SA=\E[?7h:al=\E[L:cd=\E[J:\
    :ce=\E[K:cl=\E[H\E[2J:cm=\E[%i%d;%dH:cr=^M:dc=\E[P:\
    :dl=\E[M:do=\E[1B:ei=:ho=\E[H:ic=\E[@:\
    :if=/usr/share/tabset/vt100:im=:\
    :is=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:k0=^AI\r:\
    :k1=^A@\r:k2=^AA\r:k3=^AB\r:k4=^AC\r:k5=^AD\r:k6=^AE\r:\
    :k7=^AF\r:k8=^AG\r:k9=^AH\r:kA=^AJ\r:kB=^AK\r:kC=^AL\r:\
    :kD=^AM\r:kE=^AN\r:kF=^AO\r:kb=^H:kd=\E[B:kh=\E[f:kl=\E[D:\
    :kr=\E[C:ku=\E[A:le=^H:me=\E[m:nd=\E[1C:nw=^M^J:se=\E[m:\
    :sf=^J:so=\E[7m:ta=^I:ue=\E[m:up=\E[1A:us=\E[4m:
# (altos3: had extension capabilities
#    :c0=^A`\r:c1=^Aa\r:c2=^Ab\r:c3=^Ac\r:\
#    :c4=^Ad\r:c5=^Ae\r:c6=^Af\r:c7=^Ag\r:\
#    :c8=^Ah\r:c9=^Ai\r:cA=^Aj\r:cB=^Ak\r:\
#    :cC=^Al\r:cD=^Am\r:cE=^An\r:cF=^Ao\r:
#    :XU=^Aq\r:XD=^Ar\r:XR=^As\r:XL=^At\r:\
#    :HL=^AP\r:SP=\E[i:\
#    :IS=\E[@:DE=\E[P:IL=\E[L:NS=\E[S:PS=\E[T:\
altos3|altos5|alt3|alt5|altos-3|altos-5|altos III or V:\
    :mb=\E[5p:me=\E[p:sr=\EM:tc=altos2:
Well from my remote login from my laptop via serial/ip converter I get "vt100" which is what I am using.. On the Altos III terminal I get "altos3". So basically in pconfig when you assign the terminal model based on the port setup that is what it sets that port as. It doesn't really read it from the ".profile" or /etc/profile files. This is a very old version of Xenix V3.2 or 3.1 depending on machine. Options and commands are limited and different than today's Unix or Linux. In my tweaking I was able to get my model 886 to work properly with the VT100 pretty much 100%.. I am still having difficulty on my 586T. Most applications read the file /etc/termcap but there are some applications that have a termcap file in a specific folder that it reads, so it doesn't always read from the /etc/termcap file. What I really need is someone who is familiar with programming termcaps from back in the day to help me out with the description of the termcap for vt100 on my HP laptop so that it matches perfectly. I use hyperterminal specifically, and yes I know I can use putty, or teraterm, etc. but Hyperterminal seems to work the best. I do use putty for other interfaces for linux stuff but it's just not the same with this old server. Here is the default settings for VT100 in the termcap file. But entries need to be fixed in this.. there are some small details that need to be tweaked. Especially the backspace and delete keys.. and also the arrow keys on the laptop. Another strange thing is if you use hyperterminal with the VT100 I get a blinking underline on the main menu which is not supposed to be there.. on the Altos3 terminal it disappears and just lets you arrow up and down to select the program you want to launch. I've tried to tweak the settings based on the attached file to modify it but I have run into little glitches.. There also seems to be something related into what line number you place your commands in.. and sometimes on some I see double the same command for other terminals.

d1|vt100|DEC VT100:\
:up=\E[1A:do=\E[1B:nd=\E[1C:bc=\E[1D:cm=\E[%i%d;%dH:ho=\E[H:\
:co#80:li#24:am:cl=50\E[;H\E[2J:bs:cm=5\E[%i%2;%2H:nd=\E[C:up=\E[A:\
:ce=3\E[K:cd=50\E[J:so=\E[7m:se=\E[m:us=\E[4m:ue=\E[m:\
:is=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:ks=\E[?1h\E=:ke=\E[?1l\E>:\
:if=/usr/lib/tabset/vt100:ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:\
:kh=\E[H:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:pt:sr=5\EM: (ignore the face with the tounge out that should be a : p and without a space in it. Its making an emoji)
:am:le=^H:bs:li#24:co#80:cm=\EY%+ %+ :cd=\Ek:ce=\EK:nd=^F:\
:up=^Z:cl=^L:ll=^A:kl=^U:kr=^F:kd=^J:ku=^Z:kh=^A:\
:so=^N:se=^O:us=^N:ue=^O:is=^O\E0`:vs=^O\E0P:ve=^O\E0`:


And in my previous post I put the wrong Altos Terminal definitions.. here is the ones that work just fine for the Altos3.


# Termcap for Altos III terminal
#
#
a3|altos3|alt3|altos 3|Altos III:\
:cd=\E[J:ce=\E[K:cl=\E[;H\E[2J:\
:up=\E[1A:do=\E[1B:nd=\E[1C:bc=\E[1D:cm=\E[%i%d;%dH:ho=\E[H:\
:al=\E[L:dl=\E[M:ic=\E[@:dc=\E[P:im=:ei=:SP=\E[i:\
:co#80:li#24:ug#0:sg#0:bs:pt:sr=\EM:\ (ignore the face with the tounge out that should be a : p and without a space in it. So the forum is reading it as an emoji)
:so=\E[7m:se=\E[m:us=\E[4m:ue=\E[m:\
:is=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:if=/usr/lib/tabset/vt100:\
:ku=\E[A:kd=\E[B:kr=\E[C:kl=\E[D:kh=\E[f:kb=^H:cr=^M:\
:XU=^Aq\r:XD=^Ar\r:XR=^As\r:XL=^At\r:\
:HL=^AP\r:\
:IS=\E[@:DE=\E[P:IL=\E[L:NS=\E[S:pS=\E[T:\ (ignore the face with the tounge out that should be a : p and without a space in it. So the forum is reading it as an emoji)
:k0=^A@\r:k1=^AA\r:k2=^AB\r:k3=^AC\r:\
:k4=^AD\r:k5=^AE\r:k6=^AF\r:k7=^AG\r:\
:k8=^AH\r:k9=^AI\r:kA=^AJ\r:kB=^AK\r:\
:kC=^AL\r:kD=^AM\r:kE=^AN\r:kF=^AO\r:\
:c0=^A`\r:c1=^Aa\r:c2=^Ab\r:c3=^Ac\r:\
:c4=^Ad\r:c5=^Ae\r:c6=^Af\r:c7=^Ag\r:\
:c8=^Ah\r:c9=^Ai\r:cA=^Aj\r:cB=^Ak\r:\
:cC=^Al\r:cD=^Am\r:cE=^An\r:cF=^Ao\r:
 

Attachments

  • termcapinstr.txt
    47.1 KB · Views: 1
Last edited:
If there is anyone from back in the day that did write termcaps I sure would love to chat with them.. I have a few glitches I'd like to clean up.
 
If you put your termcaps in CODE tags, they should not appear as emojis. (In the format bar, select the three dots, then the "code" button.)

I still don't understand your problem. You only tell us that things are old, quirky, glitchy and screw up; that you poked around in some files; and that something you tried did not work the way you expected it to. Those descriptions are not helpful to anyone else.

What are you doing, what happens, and what do you think should happen?
 
Back
Top