Hi, I´m working with a mobil project, using ascii terminal, with a small screen, how can I tell progress that I have less rows and columns?
Thanks in advance
Since you use an ascii terminal, I assume the session runs on a Linux/Unix system.
You set co# and li# in the protermcap file, but if you make it less than 80x6, you will get an error message and it will expand to 80x6. I would not edit the original, but a copy of it and point the session to it using the PROTERMCAP environment variable.
However, as long as you take care not to display anything beyond the last column, you can successfully run on a terminal with less columns, as long as you have at least six lines.
If you have a box and the output is too wide, it goes "funny", but if you display with NO-BOX, it seems to wrap.
So the long and the short is that you need to:
1. co# to the max of 80 and your available columns.
2. li# to the number of lines you have, but not less t han 6.
3. Keep the width of your frames <= the available columns.
Using NO-BOX saves you a lot of space.
Note that with li#6 you will only have three useful lines, as Progress reserves the last line for the status area and the two above that for the message area.
I had thought this was possible with the co and li entries in protermcap, but the AVM enforces a minimum of 80 columns and 6 lines. For some terminal types the AVM queries ioctl for information (based on the ws entry), but that might not be a portable solution. I think you have to code your frames to the expected screen size using WIDTH . But I would defer to others who have actually done this.
I had thought this was possible with the co and li entries in protermcap, but the AVM enforces a minimum of 80 columns and 6 lines. For some terminal types the AVM queries ioctl for information (based on the ws entry), but that might not be a portable solution. I think you have to code your frames to the expected screen size using WIDTH . But I would defer to others who have actually done this.
Flag this post as spam/abuse.
Since you use an ascii terminal, I assume the session runs on a Linux/Unix system.
You set co# and li# in the protermcap file, but if you make it less than 80x6, you will get an error message and it will expand to 80x6. I would not edit the original, but a copy of it and point the session to it using the PROTERMCAP environment variable.
However, as long as you take care not to display anything beyond the last column, you can successfully run on a terminal with less columns, as long as you have at least six lines.
If you have a box and the output is too wide, it goes "funny", but if you display with NO-BOX, it seems to wrap.
So the long and the short is that you need to:
1. co# to the max of 80 and your available columns.
2. li# to the number of lines you have, but not less t han 6.
3. Keep the width of your frames <= the available columns.
Using NO-BOX saves you a lot of space.
Note that with li#6 you will only have three useful lines, as Progress reserves the last line for the status area and the two above that for the message area.