We migrated from Sco OpenServer 5.0 and Informix 7.20 to Sco Open Server 6.0 and Informix 7.32. When we compile programs with Window declaration, it can not execute but terminates the application. We have checked the terminal type which is, at386-ie. When we made changes to my .profile i.e.
DATABASE "/srs-prps/ppsys/phaseI/ppdb" MAIN DEFINE ans CHAR(1) DEFINE pline INTEGER DEFINE flag CHAR(1), w_authorized SMALLINT, w_userid LIKE userrec.userid LET pline = 7 ### OPTIONS PROMPT LINE pline WHILE pline <> 10 ### OPEN WINDOW wdw AT 4,6 WITH 7 ROWS, 60 COLUMNS ATTRIBUTE (BORDER) ### DISPLAY "Rows = 7, PROMPT LINE is set to ", pline at 2, 6 ### PROMPT "123456789012345678901234567890abcdef" FOR CHAR ans ### CLOSE WINDOW wdw LET pline = pline + 1 display " loop ", pline ### OPTIONS PROMPT LINE pline END WHILE LET w_userid = FGL_GETENV("LOGNAME") SELECT TRUE INTO w_authorized FROM userrec WHERE userid = w_userid ### DISPLAY "Rows = 7, PROMPT LINE is set to ", pline at 2, 6 display "Reached Here " display pline display w_userid sleep 6 END MAIN
But when the comments are removed, it crashes and dumps. When we run run on the server itself we got error -1135. We tried to run this :
case "$1" in ansi) # change console term type defadm coterm TERM=ansi sed -e 's/^at386-ie/ansi/' < /etc/ttytype > /etc/ttytype.$$ cp /etc/ttytype.$$ /etc/ttytype rm -f /etc/ttytype.$$
UX:pcfont: ERROR: pcfont can only be run from a virtual terminal UX:pcfont: ERROR: on a graphics workstation mapstr: cannot put key strings: Invalid argument
I renamed the termcap in "/etc/termcap" and "/u/informix/etc/termcap" and copied these files from Sco Openserver 5. Since I am not quite competent to handle these files, I did not want to take chances and mess up.
When I compiled, using our terminal emulator, "EWAN", the program exited and terminated the application. I went and logged on the server and re-compiled and run the program and it displayed the following:
Program Stopped at "Wintest.4gl", line 24
which is:
DISPLAY "Rows = 7, PROMPT LINE is set to ", pline at 5, 3 error number -1135 The row or column number in DISPLAY AT exceeds the limits of your terminal
What I noticed though, is that there was no core dump this time as was the case previously.
Other than the termcap, we have the following settings:
Internal Codeset Console Codeset ISO8859-1 IBM850
I wonder if the font type and size would be an issue. If I have to make changes to the termcap, what are these changes ? I have looked at the code, I can't easily work my way around.
What would be the correct console terminal settings for our version or could it be something else ?