Xterm terminal and resize code...
I am in progress of converting a really old 25+ year old application .  

It sends an escape sequence to make the SCREEN 132 characters wide...   
However it didnt work and i put the XTERM equilivment that seems to work in most cases..

It is 

    "\x1B[8;50;132t"

Although the screen resizes with success there is an issue 
Here is   the code that the COBOL program uses to execute the command  
 

       pg -f FILETOSHOW

using `CALL "SYSTEM" USING BY CONTENT DS-REC`   
where DS-REC is the above command....   

The problem is that although screen resizes data are printed with the previous settings... Calling again the program solves the issue and prints correctly...  
Doesnt anybody knows whether i should send another escape code also?
Xterm terminal and resize code...
===

I am in progress of converting a really old 25+ year old application .  

It sends an escape sequence to make the SCREEN 132 characters wide...   
However it didnt work and i put the XTERM equilivment that seems to work in most cases..

It is 

    "\x1B[8;50;132t"

Although the screen resizes with success there is an issue 
Here is   the code that the COBOL program uses to execute the command  
 

       pg -f FILETOSHOW

using `CALL "SYSTEM" USING BY CONTENT DS-REC`   
where DS-REC is the above command....   

The problem is that although screen resizes data are printed with the previous settings... Calling again the program solves the issue and prints correctly...  
Doesnt anybody knows whether i should send another escape code also?