Last change
on this file since 1455 was
1455,
checked in by Sam Hocevar, 16 years ago
|
- Add a no warranty clause to the code.
|
-
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 1455 2006-12-11 15:52:24Z sam $ |
---|
7 | * |
---|
8 | * This program is free software. It commes 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 | |
---|
18 | struct 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 | |
---|
36 | long 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.