source: ttyvaders/trunk/src/ceo.c @ 1460

Last change on this file since 1460 was 1460, checked in by Sam Hocevar, 13 years ago
  • Bwarf, typo in the no warranty clause.
  • Property svn:keywords set to Id
File size: 936 bytes
Line 
1/*
2 *  ttyvaders     Textmode shoot'em up
3 *  Copyright (c) 2002 Sam Hocevar <sam@zoy.org>
4 *                All Rights Reserved
5 *
6 *  $Id: ceo.c 1460 2006-12-12 01:49:48Z sam $
7 *
8 *  This program is free software. It comes without any warranty, to
9 *  the extent permitted by applicable law. You can redistribute it
10 *  and/or modify it under the terms of the Do What The Fuck You Want
11 *  To Public License, Version 2, as published by Sam Hocevar. See
12 *  http://sam.zoy.org/wtfpl/COPYING for more details.
13 */
14
15#include "config.h"
16
17#include <stdio.h>
18#include <unistd.h>
19
20#include "common.h"
21
22void ceo_alert(game *g)
23{
24    int end = 0;
25
26    while(!end)
27    {
28        caca_event_t ev;
29
30        cucul_clear_canvas(g->cv);
31
32        if(caca_get_event(g->dp, CACA_EVENT_KEY_PRESS, &ev, 0)
33            && ev.data.key.ch == '\t')
34        {
35            end = 1;
36        }
37
38        fprintf(stderr, "foo\n");
39
40        caca_refresh_display(g->cv);
41
42        usleep(40000);
43    }
44}
Note: See TracBrowser for help on using the repository browser.