Teonet library  0.4.7
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
rlutil.h File Reference
#include "sys/socket.h"
#include <stdio.h>
#include <termios.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/time.h>

Go to the source code of this file.

Macros

#define RLUTIL_INLINE   __inline__
 
#define RLUTIL_PRINT(st)   printf("%s", st)
 
#define _ANSI_NONE   "\033[0m"
 
#define _ANSI_CLS   "\033[2J"
 
#define _ANSI_BLACK   "\033[22;30m"
 
#define _ANSI_RED   "\033[22;31m"
 
#define _ANSI_GREEN   "\033[22;32m"
 
#define _ANSI_BROWN   "\033[22;33m"
 
#define _ANSI_BLUE   "\033[22;34m"
 
#define _ANSI_MAGENTA   "\033[22;35m"
 
#define _ANSI_CYAN   "\033[22;36m"
 
#define _ANSI_GREY   "\033[22;37m"
 
#define _ANSI_DARKGREY   "\033[01;30m"
 
#define _ANSI_LIGHTRED   "\033[01;31m"
 
#define _ANSI_LIGHTGREEN   "\033[01;32m"
 
#define _ANSI_YELLOW   "\033[01;33m"
 
#define _ANSI_LIGHTBLUE   "\033[01;34m"
 
#define _ANSI_LIGHTMAGENTA   "\033[01;35m"
 
#define _ANSI_LIGHTCYAN   "\033[01;36m"
 
#define _ANSI_WHITE   "\033[01;37m"
 
#define min(a, b)   (((a)<(b))?(a):(b))
 Function: min Returns the lesser of the two arguments. More...
 
#define max(a, b)   (((b)<(a))?(a):(b))
 Function: max Returns the greater of the two arguments. More...
 

Typedefs

typedef char * RLUTIL_STRING_T
 Defs: Internal typedefs and macros RLUTIL_STRING_T - String type depending on which one of C or C++ is used RLUTIL_PRINT(str) - Printing macro independent of C/C++. More...
 

Enumerations

enum  {
  BLACK, BLUE, GREEN, CYAN,
  RED, MAGENTA, BROWN, GREY,
  DARKGREY, LIGHTBLUE, LIGHTGREEN, LIGHTCYAN,
  LIGHTRED, LIGHTMAGENTA, YELLOW, WHITE,
  NONE
}
 Enums: Color codes. More...
 

Functions

int usleep (__useconds_t __useconds)
 

Macro Definition Documentation

#define _ANSI_BLACK   "\033[22;30m"
#define _ANSI_BLUE   "\033[22;34m"
#define _ANSI_BROWN   "\033[22;33m"
#define _ANSI_CLS   "\033[2J"

Referenced by ksnetArpShow().

#define _ANSI_CYAN   "\033[22;36m"
#define _ANSI_DARKGREY   "\033[01;30m"
#define _ANSI_GREEN   "\033[22;32m"

Referenced by teoLogPuts().

#define _ANSI_GREY   "\033[22;37m"
#define _ANSI_LIGHTBLUE   "\033[01;34m"
#define _ANSI_LIGHTCYAN   "\033[01;36m"
#define _ANSI_LIGHTGREEN   "\033[01;32m"
#define _ANSI_LIGHTMAGENTA   "\033[01;35m"
#define _ANSI_LIGHTRED   "\033[01;31m"
#define _ANSI_MAGENTA   "\033[22;35m"
#define _ANSI_RED   "\033[22;31m"
#define _ANSI_WHITE   "\033[01;37m"
#define _ANSI_YELLOW   "\033[01;33m"
#define max (   a,
 
)    (((b)<(a))?(a):(b))

Function: max Returns the greater of the two arguments.

#define min (   a,
 
)    (((a)<(b))?(a):(b))

Function: min Returns the lesser of the two arguments.

#define RLUTIL_INLINE   __inline__
#define RLUTIL_PRINT (   st)    printf("%s", st)

Typedef Documentation

typedef char* RLUTIL_STRING_T

Defs: Internal typedefs and macros RLUTIL_STRING_T - String type depending on which one of C or C++ is used RLUTIL_PRINT(str) - Printing macro independent of C/C++.

Enumeration Type Documentation

anonymous enum

Enums: Color codes.

BLACK - Black BLUE - Blue GREEN - Green CYAN - Cyan RED - Red MAGENTA - Magenta / purple BROWN - Brown / dark yellow GREY - Grey / dark white DARKGREY - Dark grey / light black LIGHTBLUE - Light blue LIGHTGREEN - Light green LIGHTCYAN - Light cyan LIGHTRED - Light red LIGHTMAGENTA - Light magenta / light purple YELLOW - Yellow (bright) WHITE - White (bright)

Enumerator
BLACK 
BLUE 
GREEN 
CYAN 
RED 
MAGENTA 
BROWN 
GREY 
DARKGREY 
LIGHTBLUE 
LIGHTGREEN 
LIGHTCYAN 
LIGHTRED 
LIGHTMAGENTA 
YELLOW 
WHITE 
NONE 

Function Documentation

int usleep ( __useconds_t  __useconds)