Procedure Editor

rohan

New Member
Hi Guys,
How can I get more than 20 editable lines in the CHUI Procedure Editor?
Is it just a matter of finding emulation software which emulates a terminal with more lines?
I am using an emulator (Token2 Plus) on Windows to develop CHUI programs on a Unix server.
The emulation allows lots of lines and columns to be displayed and used while in the Unix shell, but as soon as the editor is started you get the standard number of lines and columns. The actual terminals available with Token2 Plus are vt100, ansi and xterm. In Token2 the number of lines and columns for the vt100 are only adjustable by stretching the window. The font can also be reduced (must be a TrueType font), but this just gives you the Progress Editor in a smaller area in a larger window with no extra lines or columns!
I can understand that when actually running a program Progress may need to know a set number of lines & cols, but I can't see why this limitation should exist when editing procedures.
Could I create a new terminal of my own design in Unix for Progress to use - e.g a vt100 with 30 lines?
I rather not resort to a non-Progress editor such as vi!
Any suggestions would be appreciated.
 
We use a product called SecureCRT Ver 2.3.1 from VanDyke technologies. It can be configured to fill your monitor screen. I'm on a 15" flat screen monitor and have 49 rows by 132 columns. A larger screen will net more lines and columns. They also have a non-sercure product (CRT) which I believe works the same as far as screen lay out is concerned.


www.vandyke.com
rohan said:
Hi Guys,
How can I get more than 20 editable lines in the CHUI Procedure Editor?
Is it just a matter of finding emulation software which emulates a terminal with more lines?
I am using an emulator (Token2 Plus) on Windows to develop CHUI programs on a Unix server.
The emulation allows lots of lines and columns to be displayed and used while in the Unix shell, but as soon as the editor is started you get the standard number of lines and columns. The actual terminals available with Token2 Plus are vt100, ansi and xterm. In Token2 the number of lines and columns for the vt100 are only adjustable by stretching the window. The font can also be reduced (must be a TrueType font), but this just gives you the Progress Editor in a smaller area in a larger window with no extra lines or columns!
I can understand that when actually running a program Progress may need to know a set number of lines & cols, but I can't see why this limitation should exist when editing procedures.
Could I create a new terminal of my own design in Unix for Progress to use - e.g a vt100 with 30 lines?
I rather not resort to a non-Progress editor such as vi!
Any suggestions would be appreciated.
 
The answer will probably lie in the PROTERMCAP and an entry under your terminal type which is (I think #li:).

Take a copy of the Protermcap into your home directory, modify this entry, change your PROTERMCAP environment variable to point to the new protermcap and try it!

Toby
 
Thanks to MHotovec for the suggestion.
After trying lots of combinations of settings with the Token2 Plus emulator software I discovered by chance that if I define my terminal type in the shell as xterm i.e. TERM=xterm, when I start the Token2 emulator I get as many lines and columns as the window can handle at the chosen font size. I'm in CHUI programmers' heaven!
Each time I log on I can decide whether or not to override the default TERM=vt100. All programs seem to run fine so far but some obviously only display within the frames determined at compile time.
I am not sure what the all implications for programming are but I'll be sure to test programs on the standard vt100 emulator/terminal type that the users have.
Now for a bigger monitor....
 
Back
Top