libunix.cc File Reference

#include "AppHdr.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <stdarg.h>
#include <ctype.h>
#include "libunix.h"
#include "defines.h"
#include "cio.h"
#include "delay.h"
#include "enum.h"
#include "externs.h"
#include "libutil.h"
#include "options.h"
#include "files.h"
#include "state.h"
#include "stuff.h"
#include "view.h"
#include "viewgeom.h"
#include <termios.h>
#include <signal.h>
#include <time.h>
#include <curses.h>

Include dependency graph for libunix.cc:


Defines

#define _LIBUNIX_IMPLEMENTATION
#define KPADAPP   "\033[?1051l\033[?1052l\033[?1060l\033[?1061h"
#define KPADCUR   "\033[?1051l\033[?1052l\033[?1060l\033[?1061l"
#define character_at(y, x)   mvinch(y,x)
#define valid_char(x)   (x)
#define write_char_at(y, x, c)   mvaddch(y, x, c)
#define char_info_character(c)   ((c) & A_CHARTEXT)
#define char_info_colour(c)   ((c) & A_COLOR)
#define char_info_attributes(c)   ((c) & A_ATTRIBUTES)

Typedefs

typedef unsigned long char_info

Functions

void unixcurses_startup ()
void unixcurses_shutdown ()
void set_mouse_enabled (bool enabled)
int m_getch ()
int getch_ck ()
void sighup_save_and_exit ()
int unixcurses_get_vi_key (int keyin)
char * itoa (int value, char *strptr, int radix)
int cprintf (const char *format,...)
int putch (unsigned char chr)
int putwch (unsigned chr)
int window (int x1, int y1, int x2, int y2)
void put_colour_ch (int colour, unsigned ch)
void puttext (int x1, int y1, const crawl_view_buffer &vbuf)
void update_screen (void)
void clear_to_end_of_line (void)
void clear_to_end_of_screen (void)
int get_number_of_lines (void)
int get_number_of_cols (void)
int clrscr ()
void set_cursor_enabled (bool enabled)
bool is_cursor_enabled ()
unsigned get_brand (int col)
void textattr (int col)
void textcolor (int col)
void textbackground (int col)
int gotoxy_sys (int x, int y)
void fakecursorxy (int x, int y)
int wherex ()
int wherey ()
void delay (unsigned long time)
int kbhit ()
char * strlwr (char *str)

Variables

const int HANGUP_KILL_DELAY_SECONDS = 10

Define Documentation

#define _LIBUNIX_IMPLEMENTATION

#define char_info_attributes (  )     ((c) & A_ATTRIBUTES)

#define char_info_character (  )     ((c) & A_CHARTEXT)

#define char_info_colour (  )     ((c) & A_COLOR)

#define character_at ( y,
 )     mvinch(y,x)

#define KPADAPP   "\033[?1051l\033[?1052l\033[?1060l\033[?1061h"

#define KPADCUR   "\033[?1051l\033[?1052l\033[?1060l\033[?1061l"

#define valid_char (  )     (x)

#define write_char_at ( y,
x,
 )     mvaddch(y, x, c)


Typedef Documentation

typedef unsigned long char_info


Function Documentation

void clear_to_end_of_line ( void   ) 

Here is the call graph for this function:

void clear_to_end_of_screen ( void   ) 

Here is the call graph for this function:

int clrscr ( void   ) 

Here is the call graph for this function:

int cprintf ( const char *  format,
  ... 
)

void delay ( unsigned long  time  ) 

void fakecursorxy ( int  x,
int  y 
)

unsigned get_brand ( int  col  )  [inline]

int get_number_of_cols ( void   ) 

int get_number_of_lines ( void   ) 

int getch_ck ( void   ) 

Here is the call graph for this function:

int gotoxy_sys ( int  x,
int  y 
) [inline]

bool is_cursor_enabled (  ) 

char* itoa ( int  value,
char *  strptr,
int  radix 
)

int kbhit ( void   ) 

int m_getch (  ) 

void put_colour_ch ( int  colour,
unsigned  ch 
) [inline]

Here is the call graph for this function:

int putch ( unsigned char  chr  ) 

void puttext ( int  x1,
int  y1,
const crawl_view_buffer vbuf 
)

Here is the call graph for this function:

int putwch ( unsigned  chr  ) 

Here is the call graph for this function:

void set_cursor_enabled ( bool  enabled  ) 

void set_mouse_enabled ( bool  enabled  ) 

void sighup_save_and_exit (  ) 

Here is the call graph for this function:

char* strlwr ( char *  str  ) 

void textattr ( int  col  ) 

Here is the call graph for this function:

void textbackground ( int  col  ) 

void textcolor ( int  col  ) 

int unixcurses_get_vi_key ( int  keyin  ) 

void unixcurses_shutdown ( void   ) 

void unixcurses_startup ( void   ) 

Here is the call graph for this function:

void update_screen ( void   )  [inline]

int wherex ( void   ) 

int wherey ( void   ) 

int window ( int  x1,
int  y1,
int  x2,
int  y2 
)


Variable Documentation

const int HANGUP_KILL_DELAY_SECONDS = 10


Generated on Thu Jan 13 13:08:24 2011 by  doxygen 1.5.6