Back to index

tetex-bin  3.0
Functions
init_keytry.c File Reference
#include <curses.priv.h>
#include <term.h>
#include <tic.h>
#include <init_keytry.h>

Go to the source code of this file.

Functions

 _nc_init_keytry (void)

Function Documentation

Definition at line 63 of file init_keytry.c.

{
    size_t n;

    /* The SP->_keytry value is initialized in newterm(), where the SP
     * structure is created, because we can not tell where keypad() or
     * mouse_activate() (which will call keyok()) are first called.
     */

    for (n = 0; _nc_tinfo_fkeys[n].code; n++)
       if (_nc_tinfo_fkeys[n].offset < STRCOUNT)
           _nc_add_to_try(&(SP->_keytry),
                        CUR Strings[_nc_tinfo_fkeys[n].offset],
                        _nc_tinfo_fkeys[n].code);
#ifdef TRACE
    _nc_trace_tries(SP->_keytry);
#endif
}

Here is the call graph for this function:

Here is the caller graph for this function: