Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/px/pxterminalbuildcharsets.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/px/pxterminalbuildcharsets.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/px/pxterminalbuildcharsets.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/px/pxterminalbuildcharsets.html on line 8

PxTerminalBuildCharsets()

Create character set tables based on translation tables

Synopsis:

#include <photon/PxTerminal.h>

PtTerminalCharsets_t *PxTerminalBuildCharsets(
   PxTerminalCsNames_t const *names );

Library:

phexlib

Description:

This function is an alternative to creating charset tables by hand. It creates a PtTerminalCharsets_t structure (see the Photon Widget Reference) based on Photon character translation files (see PxTranslateSet()).

The PxTerminalCsNames_t structure is defined as follows:

typedef struct {
    char const *AnsiCharsetName;
    char const *InternalCharsetName;
    char const *FontCharsetName;
    ...
    }
PxTerminalCsNames_t;

The AnsiCharsetName and InternalCharsetName members can be either NULL or the name of a supported character set. A NULL maps directly to a NULL in the resulting PtTerminalCharsets_t structure.

The FontCharsetName can be one of:

This function puts the resulting structure and all the tables in a single allocated block of memory. After it's no longer needed, you can simply free() it.

Returns:

A pointer to the resulting PtTerminalCharsets_t structure.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PxTerminalLoadCharsets(), PxTerminalSaveCharsets()

PtTerminal, PtTerminalCharsets_t in the Photon Widget Reference


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/px/pxterminalbuildcharsets.html on line 136

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/px/pxterminalbuildcharsets.html on line 136