Home
Developer Resources
QNX RTOS v4
QNX RTOS v4 Knowledge Base

QNX RTOS v4 Knowledge Base

Foundry27
Foundry27
QNX RTOS v4 project
Resources

QNX RTOS v4 Knowledge Base

Title PtTty resources question
Ref. No. QNX.000009843
Category(ies) Development
Issue To execute the command of TTY_CMD or TTY_ARGV seems on TTY_PSEUDO and the FILL_COLOR and TERM_FONT are completly ignored.

Could you provide us with more info about this?

Solution The TTY_CMD/TTY_ARGV and TTY_PSEUDO are order-dependant. You have to set TTY_PSEUDO before setting TTY_CMD/TTY_ARGV.

The FILL_COLOR defines the color of the margins. This fact is mentioned in the docs. The background color of the terminal defaults to black or wathever your TERM_COLOR_TABLE resource defines as entry #0.

Unless you know what will be running in the PtTty, it is not a good idea to change black into something completly different by setting TERM_COLOR_TABLE. It is better to set the background color by sending appropriate escape sequences to the terminal. The safest way is to call PtTerminalPut() function before you set TTY_CMD/TTY_ARGV. Escape sequences accepted by PtTerminal are listed in the docs for Dev.con/Dev.ansi.