Midnight Commander for Win32
[reactos.git] / rosapps / mc / src / xcurses.c
1 /* Glue code to run with bsd curses.
2 Copyright (C) 1994 Miguel de Icaza
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17
18 */
19
20 #include <config.h>
21 #include "tty.h"
22
23 int has_colors (void)
24 {
25 return 0;
26 }
27
28 int init_pair (int pair, int fore, int back)
29 {
30 return 0;
31 }
32
33 int start_color ()
34 {
35 return 0;
36 }
37
38 #ifndef SUNOS_CURSES
39 void hline (int character, int len)
40 {
41 int i, x, y;
42
43 getyx (stdscr, y, x);
44 while (len--)
45 addch (character);
46 move(y, x);
47 }
48
49 void vline (int character, int len)
50 {
51 int i, x, y;
52
53 getyx (stdscr, y, x);
54 while (len--)
55 mvaddch (y++, x, character);
56 }
57 #endif
58