Consultor Eletrônico



Kbase 13676: PUT SCREEN doesn't handle some control character in V7
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/05/1998
PUT SCREEN doesn't handle some control character in V7

Behavior of PUT SCREEN changed between version 6.3 and 7.
Some control sequences that were worked in v6 programs
won't work correctly in version 7. Following is a brief
program that shows a program that used to work in version
6, and a modified program that will do the same thing in
version 7. PUT SCREEN was never really intended to work
with control sequences this way, and it was just a quirk
that it worked previously.

/* Begin program that fails */

put screen "~033[?5i".
pause.

put screen "This" + "doesn't" + "~015~012" + "work" + "the" + "way"
+ "~015~012" + "I want".

put screen "~033[?4i".

/* end program that fails */


While we are not planning to fix this, the following program shows a
work-around:


/* Begin program that works */

def stream a.

output stream a to /dev/tty.
put stream a unformatted "~033[?5i".
put stream a unformatted "This" + "does" + "~015~012" + "work"
+ "the" + "way"
+ "~015~012" + "I want".

put stream a unformatted "~033[?4i".

/* end program that works */

Progress Software Technical Support Note # 13676