GNU PROLOG with UTF8 support
Macros | Functions
terminal.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define KEY_BACKSPACE   '\b'
 
#define KEY_DELETE   0x7f
 
#define KEY_ID(code)   KEY_ID2(KEY_MODIF_NONE, code)
 
#define KEY_ID2(modif, code)   (((modif) << 9) | ((1 << 8) | ((code) & 0x7f)))
 
#define GET_MODIF(x)   (((x) >> 9) & 7)
 
#define GET_CODE(x)   ((x) & 0x1ff)
 
#define KEY_CTRL(x)   ((x) & 0x1f)
 
#define KEY_ESC(x)   KEY_ID((1 << 7) | (x) | 0x20) /* 0x20 to be case insensitive */
 
#define IS_ESC_COMB(x)   ((x) & (1 << 7))
 
#define GET_ESC_COMB(x)   ((x) & 0x7f)
 
#define KEY_MODIF_NONE   0 /* modifiers (additive) */
 
#define KEY_MODIF_SHIFT   1
 
#define KEY_MODIF_ALT   2
 
#define KEY_MODIF_CTRL   4
 
#define KEY_IS_EOF(c)   ((c) == KEY_CTRL('D'))
 

Functions

void Pl_LE_Open_Terminal (void)
 
void Pl_LE_Close_Terminal (void)
 
void Pl_LE_Screen_Size (int *row, int *col)
 
void Pl_LE_Ins_Mode (int ins_mode)
 
int Pl_LE_Kbd_Is_Not_Empty (void)
 
int Pl_LE_Is_Interrupt_Key (int c)
 
void Pl_LE_Emit_Beep (void)
 
void Pl_LE_Put_Char (int c)
 
int Pl_LE_Get_Char (void)
 

Macro Definition Documentation

#define GET_CODE (   x)    ((x) & 0x1ff)
#define GET_ESC_COMB (   x)    ((x) & 0x7f)
#define GET_MODIF (   x)    (((x) >> 9) & 7)
#define IS_ESC_COMB (   x)    ((x) & (1 << 7))
#define KEY_BACKSPACE   '\b'
#define KEY_CTRL (   x)    ((x) & 0x1f)
#define KEY_DELETE   0x7f
#define KEY_ESC (   x)    KEY_ID((1 << 7) | (x) | 0x20) /* 0x20 to be case insensitive */
#define KEY_ID (   code)    KEY_ID2(KEY_MODIF_NONE, code)
#define KEY_ID2 (   modif,
  code 
)    (((modif) << 9) | ((1 << 8) | ((code) & 0x7f)))
#define KEY_IS_EOF (   c)    ((c) == KEY_CTRL('D'))
#define KEY_MODIF_ALT   2
#define KEY_MODIF_CTRL   4
#define KEY_MODIF_NONE   0 /* modifiers (additive) */
#define KEY_MODIF_SHIFT   1

Function Documentation

void Pl_LE_Close_Terminal ( void  )

Here is the call graph for this function:

Here is the caller graph for this function:

void Pl_LE_Emit_Beep ( void  )

Here is the call graph for this function:

Here is the caller graph for this function:

int Pl_LE_Get_Char ( void  )

Here is the caller graph for this function:

void Pl_LE_Ins_Mode ( int  ins_mode)

Here is the caller graph for this function:

int Pl_LE_Is_Interrupt_Key ( int  c)

Here is the caller graph for this function:

int Pl_LE_Kbd_Is_Not_Empty ( void  )

Here is the caller graph for this function:

void Pl_LE_Open_Terminal ( void  )

Here is the call graph for this function:

Here is the caller graph for this function:

void Pl_LE_Put_Char ( int  c)

Here is the caller graph for this function:

void Pl_LE_Screen_Size ( int *  row,
int *  col 
)

Here is the caller graph for this function: