rlcurses.h

Go to the documentation of this file.
00001 // @(#)root/editline:$Id: rlcurses.h 31307 2009-11-19 10:26:47Z axel $
00002 // Author: Axel Naumann, 2009
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2009, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 #ifdef __sun
00013 # include R__CURSESHDR
00014 extern "C" {
00015    // cannot #include term.h because it #defines move() etc
00016    char *tparm(char*, long, long, long, long, long, long, long, long, long);
00017    char *tigetstr(char*);
00018    int tigetnum(char*);
00019    char *tgoto(char*, int, int);
00020    int   tputs(char*, int, int (*)(int));
00021    int tgetflag(char*);
00022    int tgetnum(char*);
00023    char* tgetstr(char*, char**);
00024    int tgetent(char*, const char*);
00025 }
00026 #else
00027 extern "C" {
00028 # include R__CURSESHDR
00029    // some curses.h include a curses-version of termcap.h which
00030    // conflicts with the system one:
00031 # ifndef _TERMCAP_H
00032 #  include <termcap.h>
00033 # endif
00034 int setupterm(const char* term, int fd, int* perrcode);
00035 }
00036 #endif
00037 
00038 // un-be-lievable: termcap.h / term.h often #define these.
00039 # ifdef erase
00040 #  undef erase
00041 # endif
00042 # ifdef move
00043 #  undef move
00044 # endif
00045 # ifdef clear
00046 #  undef clear
00047 # endif
00048 # ifdef del
00049 #  undef del
00050 # endif
00051 # ifdef key_end
00052 #  undef key_end
00053 # endif
00054 # ifdef key_clear
00055 #  undef key_clear
00056 # endif
00057 # ifdef key_print
00058 #  undef key_print
00059 # endif

Generated on Tue Jul 5 14:11:38 2011 for ROOT_528-00b_version by  doxygen 1.5.1