source: neercs/trunk/src/neercs.h @ 1437

Last change on this file since 1437 was 1437, checked in by Sam Hocevar, 14 years ago
  • Imported libcaca's test/term.c into our tree.
  • Property svn:keywords set to Id
File size: 1.0 KB
Line 
1/*
2 *  neercs        console-based window manager
3 *  Copyright (c) 2006 Sam Hocevar <sam@zoy.org>
4 *                All Rights Reserved
5 *
6 *  $Id: neercs.h 1437 2006-11-27 14:46:24Z sam $
7 *
8 *  This program is free software; you can redistribute it and/or
9 *  modify it under the terms of the Do What The Fuck You Want To
10 *  Public License, Version 2, as published by Sam Hocevar. See
11 *  http://sam.zoy.org/wtfpl/COPYING for more details.
12 */
13
14#include <stdint.h>
15#include <cucul.h>
16
17struct screen
18{
19    /* Graphics stuff */
20    int init;
21    cucul_canvas_t *cv;
22    uint32_t clearattr;
23    uint8_t fg, bg;   /* ANSI-context fg/bg */
24    uint8_t dfg, dbg; /* Default fg/bg */
25    uint8_t bold, blink, italics, negative, concealed, underline;
26    uint8_t faint, strike, proportional; /* unsupported */
27
28    /* Other stuff */
29    int fd;
30    unsigned char *buf;
31    long int total;
32    int w, h;
33};
34
35long int import_term(struct screen *sc, void const *data, unsigned int size);
36
37#if 0
38#   define debug(f, z...) fprintf(stderr, f "\n", #z)
39#else
40#   define debug(f, z...) do {} while(0)
41#endif
42
Note: See TracBrowser for help on using the repository browser.