Ignore:
Timestamp:
Dec 15, 2003, 11:38:03 AM (19 years ago)
Author:
Sam Hocevar
Message:
  • src/graphics.c src/io.c: + Beginning of an X11 driver. Currently we merely open the window and

check keyboard events.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/src/caca.c

    r250 r251  
    3939#   include <dos.h>
    4040#   include <conio.h>
     41#elif defined(USE_X11)
     42#   include <X11/Xlib.h>
    4143#else
    4244#   error "no graphics library detected"
     
    113115    _setcursortype(_NOCURSOR);
    114116    clrscr();
     117
     118#elif defined(USE_X11)
     119    /* Nothing to do */
    115120
    116121#endif
     
    230235void caca_end(void)
    231236{
     237    _caca_end_graphics();
     238
    232239#if defined(USE_SLANG)
    233240    SLtt_set_mouse_mode(0, 0);
     
    246253    cputs("\r\n");
    247254    _setcursortype(_NORMALCURSOR);
     255#elif defined(USE_X11)
     256    /* Nothing to do */
    248257#endif
    249258}
     
    295304static void caca_init_terminal(void)
    296305{
    297 #if defined(HAVE_GETENV) && defined(HAVE_PUTENV)
     306#if defined(HAVE_GETENV) && defined(HAVE_PUTENV) \
     307     && (defined(USE_SLANG) || defined(USE_NCURSES))
    298308    char *term, *colorterm, *other;
    299309
Note: See TracChangeset for help on using the changeset viewer.