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 Enabling Ctrl-Alt-[ and Ctrl-Alt-] keypresses in a PtTty widget
Ref. No. QNX.000009922
Category(ies) Development
Issue We have setup a PtTty widget with a font list to get the Ctrl-Alt-[ and Ctrl-Alt-] keys to work, for our own custom pterm application.

Our question is how do we disable the option 'resize the font' without resizing the window to fit and without disabling the Ctrl-Alt-[ and Ctrl-Alt-] keys?



Solution Check out the Pt_TERM_KBFORCE flag in Pt_ARG_TERM_RESIZE_FL. If cleared, all the four key combinations will simply set the Pt_ARG_TERM_FONT_INDEX resource. Whether this changes the terminal's size in characters on the widget's size in pixels depends on a few resources (take a look at the Geometry section in the description of PtTerminal).