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 How to set-up a dumb terminal in QNX4
Ref. No. QNX.000006036
Category(ies) Network
Issue In QNX4, how do we set-up a dumb terminal using the serial port?







Solution Set up ser2 and ser3 to prompt for a terminal type, and exec() into login once the terminal
type is established:

    tinit -c "termdef" -T ser2 ser3 &

Assuming ser1 has a VT100 terminal on it (hardwired), have termdef set up the tty and
TERM variable, then exec() into login, without prompting for terminal type:

    tinit -c "termdef vt100" -T ser1 &
or
    tinit -c "termdef -e" -T ser1 TERM=vt100 &


Command-line examples

Display the terminal type:
    termdef -
or
    echo $TERM
Change the terminal type to VT100:
    export TERM=`termdef - vt100`
or
    `termdef -s vt100`
Prompt the user to specify a new terminal type:
    `termdef -s`