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

Last change on this file since 1459 was 1459, checked in by Sam Hocevar, 16 years ago
  • Bwarf, typo in the no warranty clause.
  • Property svn:keywords set to Id
File size: 1.1 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 1459 2006-12-12 01:49:37Z 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 <stdint.h>
16#include <cucul.h>
17
18struct screen
19{
20    /* Graphics stuff */
21    int init;
22    cucul_canvas_t *cv;
23    uint32_t clearattr;
24    uint8_t fg, bg;   /* ANSI-context fg/bg */
25    uint8_t dfg, dbg; /* Default fg/bg */
26    uint8_t bold, blink, italics, negative, concealed, underline;
27    uint8_t faint, strike, proportional; /* unsupported */
28
29    /* Other stuff */
30    int fd;
31    unsigned char *buf;
32    long int total;
33    int w, h;
34};
35
36long int import_term(struct screen *sc, void const *data, unsigned int size);
37
38#if 0
39#   define debug(f, z...) fprintf(stderr, f "\n", #z)
40#else
41#   define debug(f, z...) do {} while(0)
42#endif
43
Note: See TracBrowser for help on using the repository browser.