# RSXNTOPT: Setting runtime options

>> Sample Code: \rsxnt\sample\console\ansi

The RSXNTOPT.EXE program allow to set runtime options. To set global runtime options for all RSXNT processes, you must set the RSXNTOPT environment variable.

For more details read the EMX or RSX documents.

Global:

    SET RSXNTOPT=-opt1 -opt2

Local:

Command line of RSXNTOPT.EXE:

    usage: rsxntopt [-a -b -i] file.exe [options]
            -a: append options to current options
            -b: build new options
            -i: display all options of file.exe

Possible runtime options:

    -c  : disable core dumps
    -e  : redirect stderr to stdout
    -h# : limit of handles (use for win32s, default 40)
    -q  : quote all arguments to childs
    -s# : max. heap size of process
    -r* : prepend drive * to path names
    -t  : truncate filenames to 8.3 format
    -V  : enables VT100/ANSI emulation

Examples:

1) Redirect STDERR to STDOUT for gcc and other programs:

    SET RSXNTOPT=-e

Now you can catch the error channel in a file:

gcc -Zwin32 -c -Wall test.c > OUTPUT

2) Enable VT100/ANSI for test.exe in the directory sample\console\ansi:

    rsxntopt -b test.exe -V