• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Openedge Procedure editor in Unix

Is there any way to increase the windows size of the Procedure editor for Openedge 10.1B running on AIX Unix?

If I full screen my putty session, the procedure editor only takes up a small area of the screen.

Rob Fitzpatrick

ProgressTalk.com Sponsor
You can look in the $DLC/protermcap, and compare it against your shell's terminal emulation. There is some mention of this in the Installation and Configuration manual. I assume you're using an ssh client like PuTTY or something similar; check its settings as well.

Having said that, I do run full-screen editors in PuTTY on various *nixes, so it is possible. Sorry I can't assist you much, as I usually have others who do installation (with varying degrees of success). Terminal emulation is a bit of a black art to me.
This is all about protermcap.

Your TERM variable is matched to an entry in protermcap.

In the most general case the "li" and "co" attributes of that entry control the number of lines and columns that Progress thinks your terminal has. For instance the standard vt100 entry looks like this (I have helpfully indicated the relevant attributes in red:

V1|[B][COLOR="#FF0000"]vt100[/COLOR][/B]|VT100|vt100-80|vt100_series|DEC VT-100:\
        :ku=\E[A:       :L_ku=<Up>:\
        :kd=\E[B:       :L_kd=<Down>:\
        :kr=\E[C:       :L_kr=<Right>:\
        :kl=\E[D:       :L_kl=<Left>:\
        :bc=\177:       :.L_bc:\
        :kh=\Eh:        :L_kh=<ESC> h:\
        :EN=\Ee:        :L_EN=<ESC> e:\
        :PU=^U:         :L_PU=<CTRL-U>:\
        :PD=^K:         :L_PD=<CTRL-D>:\
        :ki=\Ei:        :L_ki=<ESC> i:\
        :DL=^X:         :L_DL=<CTRL-X>:\
        :ESC=\E\E:      :L_ESC=<ESC> <ESC>:\
        :bt=\Eb:        :L_bt=<ESC> b:\
        :fk4=\EOP:      :L_fk4=<PF1>:\
        :fk1=\EOQ:      :L_fk1=<PF2>:\
        :fk2=\EOR:      :L_fk2=<PF3>:\
        :fk3=\EOS:      :L_fk3=<PF4>:\
        :fk5=\E6:       :L_fk5=<ESC> 6:\
        :fk6=\E7:       :L_fk6=<ESC> 7:\
        :fk7=\E8:       :L_fk7=<ESC> 8:\
        :Aka=^k:      :L_Aka=Ctrl-K:\
        :Akd=^z:      :L_Akd=Ctrl-Z:\
        :Akp=^r:      :L_Akp=Ctrl-R:\
        :Aks=^l:      :L_Aks=Ctrl-L:\
        :Aku=\Em:      :L_Aku=Esc-M:\
        :Akw=^g:      :L_Akw=Ctrl-G:\
        :Aki=^e:      :L_Aki=Ctrl-E:\
Depending on Progress version and OS there might be a "ws" entry and it might allow Progress to pick up the terminal size from "stty" settings at the time the session starts (dynamic resizing is not supported).

So, if you want a custom window size you need to decide what the terminal is going to be called and arrange for the TERM variable to have that value. (You probably do NOT want to change everyone else's vt100 or xterm...)

For instance, I often use "xterm-tw" to indicate "a copy of xterm that is tall and wide" and change li to 48 and co to 132.

Or -- you can make a copy of protermcap and use the PROTERMCAP environment variable to point to it:

Then edit the entry you want to customize to suit your needs. This has the advantage of not messing up anyone else if you fat finger your edits.

Simple really.
Other than the protermcap what else can cause differences?
I have 2 unix servers and on one the editor takes up the whole screen but on the other, it only uses half the screen.
I did a file compare on the protermcap files from both and they are the same.
So what else is there?
I happen to know that you are using PuTTY ;)

You probably need to tweak your PuTTY settings.

Your two servers are setup as distinct PuTTY "Saved Sessions" right?


a) open PuTTY with no arguments


b) using an existing open session, right-click the window icon (upper left corner of the window) and select "Change Settings"

There are a couple of things to look at:

1) The "Window" options have Columns & Rows -- personally I despise 80x24 and always set this to a minimum of 132x48. (It has only been 30 years since *everyone* has had hardware perfectly capable of comfortably displaying more than 80x24. But I digress...) The other thing to look at are the "When the window is resized" options. Progress sessions do NOT like to be resized. Your screen will become very confused if you resize it while Progress is running. So you probably want the "change the size of the font" option enabled.

2) "Appearance" is where you set the font size. If the rows & columns are set the same then the most likely cause of differing screen sizes is that you have different font sizes in use. Click the "Change..." button and pick a better font. BTW -- the default fonts are ugly. I like "Consolas".

If you make changes make sure to save them -- go back to "Session", highlight the correct session and click "Save" for best results. (It is also best to only have this one PuTTY session running when you do that.) Then restart PuTTY and verify that your changes have been saved.


When freshly installing PuTTY immediately go to the "Default Settings" and take care of things like the default rows & columns, font, keyboard behaviours, and screen colors. This is *much* better than doing it session by session as you create them.
I compared EVERY Putty Setting and they are exactly the same (I knew they would be because I copied one to the other).
I did login using PowerTerm and the editor on both servers acted the same and took up the full screen.
Still baffled on why Putty acts differently even though ALL of the Putty settings are the same.
If the PuTTY settings and the protermcaps are identical then the behaviour should also be the same. It is not, therefore *something* is different.

How do you copy one PuTTY to another? That is not an operation that I am familiar with and I don't know of any copy capability within PuTTY. Do you perhaps mean that you copied the icon? If you did that then I would think you also modified the properties to change the target server name? If that is correct then it is really important to realize that the PuTTY settings in the tree view depend on which saved session is loaded and active. It is very easy to end up comparing the default settings without realizing it.

One other thing to validate -- at the UNIX command line, prior to starting progress, verify that your terminal type and stty settings are the same for both servers:

prompt> echo $TERM
prompt> stty -a
speed 38400 baud; rows 81; columns 230; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon ixoff -iuclc -ixany -imaxbel -iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke

Depending on the OS Progress does sometimes vary the session rows and columns based on the "stty" settings ("ws" works for Linux but not on AIX -- offhand I forget if it works on Solaris and HPUX).

Rob Fitzpatrick

ProgressTalk.com Sponsor
How do you copy one PuTTY to another? That is not an operation that I am familiar with and I don't know of any copy capability within PuTTY.
There isn't a profile "copy" function per se, but there are a couple of ways to do this. One is to use Load on one profile, then Save with a different name (and other changed settings). The other is to use the registry. Each profile's settings are stored in a reg key. So you can export a profile as a .reg file, edit it, and then load the modified file into the registry.

This is also a useful way to compare two profiles, by exporting them to .reg and then diffing the files.
protermcaps were exactly the same.
I finally got it working.
But I am not sure what the full solution was.
There were two things I did to fix it.

The first was add ‘export TERM=vt400’ to my .profile. Not sure why I had to do this because if I did the ‘echo $TERM’ it showed vt400 before I added it to my .profile.

The second thing was related to the customized way we go into the editor.
We type the command ‘mrun’ and it brings up a menu of databases to connect to.
I found out someone had developed another command ‘mymrun’ which does the exact same thing.
However, if I use mrun I have the sizing issue. If I use mymrun I do not.

So not sure what is behind the scenes of those 2 commands, therefore, not sure what the solution is.

Rob Fitzpatrick

ProgressTalk.com Sponsor
It may be that while your login shell set TERM=vt400, the sub-shell invoked by the mrun script, and therefore the editor session it launched, did not.