Protermcap issue

Posted by James Palmer on 01-Sep-2016 10:48

Been given an Amazon instance of 11.6 that I need to configure up. When I try and pro my database I get the following:

Unable to use your terminal. Check your PROTERMCAP file. (443)

** Could not find terminal type xterm-256color in file . (146)

It's been ages since I've wrestled with *nix. What do I need to do so I can apply a df to my DB? 

Posted by Rob Fitzpatrick on 01-Sep-2016 10:51

Try: export TERM=xterm

and then try to run your command again.

All Replies

Posted by Rob Fitzpatrick on 01-Sep-2016 10:51

Try: export TERM=xterm

and then try to run your command again.

Posted by Keith Sudbury on 01-Sep-2016 10:51

Short term fix...

export TERM=xterm

Long term fix depends on your needs and how you are connecting.

Posted by James Palmer on 01-Sep-2016 10:59

That's the ticket. Thanks Rob and Keith. It's a temporary thing, until mid October anyway so the extra command isn't the end of the world.

Posted by Brian Bowman on 01-Sep-2016 11:08

Put it in your login script (depending on what shell you are using it can be different).  Then you won't forget it next time.

Posted by James Palmer on 01-Sep-2016 11:13

Thanks Brian.

Posted by marcv on 01-Sep-2016 12:22

There should be a hidden file (use ls  -la to listt it) in your home dir named .bash_profile (file name starts with a a period)

Posted by James Palmer on 01-Sep-2016 15:52

[mention:13ad3bbc749d40ec92286e4353e64ac1:e9ed411860ed4f2ba0265705b8793d05] You sir are a legend :)

Posted by Thomas Mercer-Hursh on 03-Sep-2016 12:21

BTW, James, while you seem to have a workable solution, for the future the protermcap file is in $DLC so you either need to pick a definition which is already there or create an additional one to match your terminal or client.  For most things, you should be able to pick one, but sometimes one has to do special things like enable all function keys or use a non-standard width where it can be desirable to create your own.

Posted by James Palmer on 03-Sep-2016 15:48

Thanks Thomas. I wouldn't have a clue where to start with that sort of thing so a quick fix is all I need :)

Posted by Thomas Mercer-Hursh on 03-Sep-2016 16:00

Should the time come, it isn't hard stuff, particularly since there is usually one that is close.  It used to be the each terminal emulation software would have its own little quirks and so I made a bunch of similar adaptations and assembled the ones needed for the particular customer.  One neat trick ... given how long ago I am talking about ... was to define both an 80 and a 132 column version of the same character terminal.  Then the software had a function where it would shell out using the wide definition and open a viewer on a report that had been printed to disk, switching back when it closed.

Posted by James Palmer on 03-Sep-2016 16:03

Sounds joyful, Thomas! :)

Posted by Thomas Mercer-Hursh on 03-Sep-2016 16:20

Life was definitely simpler in a character world...

Sometimes frustratingly simpler ...

Posted by gus bjorklund on 07-Sep-2016 08:40

> On Sep 3, 2016, at 4:50 PM, James Palmer wrote:

>

> Thanks Thomas. I wouldn't have a clue where to start with that sort of thing so a quick fix is all I need :)

>

>

>

should the need arise in future, you can find info on the protermcap file and its sysntax in chapter 4 of the manual called.

"OpenEdge Deployment: Managing 4GL Applications”.

This thread is closed