Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
538 | mauro | 1 | /* |
2 | * Project: S.Ha.R.K. |
||
3 | * |
||
4 | * Coordinators: |
||
5 | * Giorgio Buttazzo <giorgio@sssup.it> |
||
6 | * Paolo Gai <pj@gandalf.sssup.it> |
||
7 | * |
||
8 | * Authors : |
||
9 | * Paolo Gai <pj@gandalf.sssup.it> |
||
10 | * Massimiliano Giorgi <massy@gandalf.sssup.it> |
||
11 | * Luca Abeni <luca@gandalf.sssup.it> |
||
12 | * (see the web pages for full authors list) |
||
13 | * |
||
14 | * ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy) |
||
15 | * |
||
16 | * http://www.sssup.it |
||
17 | * http://retis.sssup.it |
||
18 | * http://shark.sssup.it |
||
19 | */ |
||
20 | |||
21 | |||
22 | /** |
||
23 | ------------ |
||
24 | CVS : $Id: crtwin.h,v 1.1 2004-03-29 18:31:40 mauro Exp $ |
||
25 | |||
26 | File: $File$ |
||
27 | Revision: $Revision: 1.1 $ |
||
28 | Last update: $Date: 2004-03-29 18:31:40 $ |
||
29 | ------------ |
||
30 | |||
31 | Author: Giuseppe Lipari |
||
32 | Date: 2/7/96 |
||
33 | |||
34 | File: CrtWin.H |
||
35 | Revision: 1.0 |
||
36 | |||
37 | |||
38 | **/ |
||
39 | |||
40 | /* |
||
41 | * Copyright (C) 2000 Paolo Gai |
||
42 | * |
||
43 | * This program is free software; you can redistribute it and/or modify |
||
44 | * it under the terms of the GNU General Public License as published by |
||
45 | * the Free Software Foundation; either version 2 of the License, or |
||
46 | * (at your option) any later version. |
||
47 | * |
||
48 | * This program is distributed in the hope that it will be useful, |
||
49 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
50 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
51 | * GNU General Public License for more details. |
||
52 | * |
||
53 | * You should have received a copy of the GNU General Public License |
||
54 | * along with this program; if not, write to the Free Software |
||
55 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
||
56 | * |
||
57 | */ |
||
58 | |||
59 | #ifndef __CRTWIN_H__ |
||
60 | #define __CRTWIN_H__ |
||
61 | |||
62 | #ifdef __cplusplus |
||
63 | extern "C" { |
||
64 | #endif |
||
65 | |||
66 | typedef struct { |
||
67 | /* Window location & size */ |
||
68 | int x,y,dx,dy; |
||
69 | /* Cursor position inside the window */ |
||
70 | int px,py; |
||
71 | } WIN; |
||
72 | |||
73 | /* |
||
74 | The window layout is depicted here |
||
75 | |||
76 | (x,y) (x+dx,y) |
||
77 | ************************ |
||
78 | *(0,0) * |
||
79 | * * |
||
80 | * * |
||
81 | * (dx-1,dy-1)* |
||
82 | ************************ |
||
83 | (x+dx,y+dy) |
||
84 | |||
85 | Inside the window relative coords are used! |
||
86 | */ |
||
87 | |||
88 | #define SINGLE_FRAME 1 |
||
89 | #define DOUBLE_FRAME 2 |
||
90 | #define NO_FRAME 0 |
||
91 | |||
92 | void win_init(WIN *w,int x, int y, int dx, int dy); |
||
93 | void win_frame(WIN *w,BYTE bcol,BYTE fcol,char *title,BYTE type); |
||
94 | void win_scroll(WIN *w); |
||
95 | void win_clear(WIN *w); |
||
96 | void win_puts(WIN *w, char *s); |
||
97 | int win_gets(WIN *w, char *s,int l); |
||
98 | |||
99 | //void cons_init(void); |
||
100 | |||
101 | #ifdef __cplusplus |
||
102 | }; |
||
103 | #endif |
||
104 | |||
105 | #endif |