Mike Lorenz
|
issues with blink attribute for text in photon terminal
|
Mike Lorenz
06/29/2017 10:49 AM
post117836
|
issues with blink attribute for text in photon terminal
Hi photon experts,
I have an issue with showing blinking text in a terminal application in Photon environment.
The program was ported from QNX4 to QNX6.50SP1 using the library "libqnxterm.a" .
It was programmed for normal console at first . Since QNX4 it is running in a simple photon-app which uses the photon-
widget "PtTty" with QNX4 terminal protocol (TERM=qnxm) .
Changing the background color and foreground color works fine. Setting the blink attribute for term_type-function
doesn't cause the text to blink .
By using the debugger I can see that in the global structure term_state the attribute for the text was changed in scrbuf
.
Testing with pterm:
1. Changing manually the blink attribute for text by using an escape sequence " echo "\033{" " (termcap for qnxm-
environment) even doesn't make the text blink in pterm using devc-pty. The background color is changed to grey instead!
2. A second program with almost the same sources as the first program shows blinking text, but only when the size of the
pterm window is set to the same char dimension as the program.
3. A third simple test program writing some text with attributes with term_type doesn't show blinking text in pterm
windows. The other attributes like underine , highlight and inverse are working.
Testing with console:
1. Blinking text works for devc-con-hid with escape sequence as well as with the test-program using libqnxterm.
Do you have any ideas ?
Thanks in advance
|
|
|