Changeset 330


Ignore:
Timestamp:
Jan 8, 2004, 7:40:29 PM (17 years ago)
Author:
Sam Hocevar
Message:
  • test/event.c: + Display at least two digits for keycodes.
  • configure.ac: + ScreenUpdate? is actually mandatory for our conio driver.
Location:
libcaca/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/configure.ac

    r327 r330  
    3333
    3434if test "${enable_conio}" != "no"; then
     35  ac_cv_my_have_conio="no"
    3536  AC_CHECK_HEADERS(conio.h,
    36    [ac_cv_my_have_conio="yes"
    37     AC_MSG_CHECKING(for ScreenUpdate in pc.h)
     37   [AC_MSG_CHECKING(for ScreenUpdate in pc.h)
    3838    AC_EGREP_HEADER(ScreenUpdate,pc.h,
    39      [AC_MSG_RESULT(yes)
     39     [ac_cv_my_have_conio="yes"
     40      AC_MSG_RESULT(yes)
    4041      AC_DEFINE(SCREENUPDATE_IN_PC_H, 1,
    41                 Define if <pc.h> defines ScreenUpdate.)],
    42      [AC_MSG_RESULT(no)])
    43     AC_DEFINE(USE_CONIO, 1, Define to activate the conio.h backend driver)
    44     CACA_DRIVERS="${CACA_DRIVERS} conio"],
    45    [ac_cv_my_have_conio="no"])
     42                Define if <pc.h> defines ScreenUpdate.)
     43      AC_DEFINE(USE_CONIO, 1, Define to activate the conio.h backend driver)
     44      CACA_DRIVERS="${CACA_DRIVERS} conio"],
     45     [AC_MSG_RESULT(no)])])
    4646  if test "${ac_cv_my_have_conio}" = "no" -a "${enable_conio}" = "yes"; then
    4747    AC_MSG_ERROR([cannot find conio.h])
     
    5050
    5151if test "${enable_slang}" != "no"; then
     52  ac_cv_my_have_slang="no"
    5253  AC_CHECK_HEADERS(slang.h slang/slang.h,
    53    ac_cv_my_have_slang="no"
    5454   [AC_CHECK_LIB(slang, SLkp_init,
    5555     [ac_cv_my_have_slang="yes"
     
    8282
    8383if test "${enable_ncurses}" != "no"; then
     84  ac_cv_my_have_ncurses="no"
    8485  AC_CHECK_HEADERS(ncurses.h,
    8586   [AC_CHECK_LIB(ncurses, initscr,
     
    8788      AC_DEFINE(USE_NCURSES, 1, Define to activate the ncurses backend driver)
    8889      CACA_LIBS="${CACA_LIBS} -lncurses"
    89       CACA_DRIVERS="${CACA_DRIVERS} ncurses"],
    90      [ac_cv_my_have_ncurses="no"])],
    91    [ac_cv_my_have_ncurses="no"])
     90      CACA_DRIVERS="${CACA_DRIVERS} ncurses"])])
    9291  if test "${ac_cv_my_have_ncurses}" = "no" -a "${enable_ncurses}" = "yes"; then
    9392    AC_MSG_ERROR([cannot find ncurses development files])
  • libcaca/trunk/src/graphics.c

    r329 r330  
    325325        data[0] = c;
    326326        data[1] = (_caca_bgcolor << 4) | _caca_fgcolor;
    327 //        gotoxy(x + 1, y + 1);
    328 //        putch(c);
    329327        break;
    330328#endif
     
    410408            *charbuf++ = (_caca_bgcolor << 4) | _caca_fgcolor;
    411409        }
    412 //        gotoxy(x + 1, y + 1);
    413 //        cputs(s);
    414410        break;
    415411#endif
  • libcaca/trunk/test/event.c

    r329 r330  
    9292        break;
    9393    case CACA_EVENT_KEY_PRESS:
    94         caca_printf(x, y, "CACA_EVENT_KEY_PRESS 0x%x",
     94        caca_printf(x, y, "CACA_EVENT_KEY_PRESS 0x%02x",
    9595                    event & 0x00ffffff);
    9696        break;
    9797    case CACA_EVENT_KEY_RELEASE:
    98         caca_printf(x, y, "CACA_EVENT_KEY_RELEASE 0x%x",
     98        caca_printf(x, y, "CACA_EVENT_KEY_RELEASE 0x2%x",
    9999                    event & 0x00ffffff);
    100100        break;
Note: See TracChangeset for help on using the changeset viewer.