1999-09-09 Federico Mena Quintero <federico@redhat.com>
[midnight-commander.git] / src / xslint.c
blob43d24166da95c67a1a29b686c0899b3081c0cc3e
1 /* Routines expected by the Midnight Commander
3 Copyright (C) 1999 The Free Software Foundation.
5 Author Miguel de Icaza
7 FIXME: This expects the user to always use slang instead of ncurses.
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 This file just has dummy procedures that don't do nothing under X11
24 editions. I will make macros once I feel right with the Tk edition.
28 #include <stdio.h>
30 int
31 interrupts_enabled (void) { return 0; }
33 void
34 enable_interrupt_key(void) {}
36 void
37 disable_interrupt_key(void) {}
39 /* FIXME: We could provide a better way of doing this */
40 int
41 got_interrupt () { return 0; }
43 void
44 slang_init (void) {}
46 void
47 slang_set_raw_mode (void) {}
49 void
50 slang_prog_mode (void) {}
52 void
53 slang_shell_mode (void) {}
55 void
56 slang_shutdown () {}
58 void
59 slang_keypad (int set) {}
61 void
62 set_slang_delay (int v) {}
64 void
65 hline (int ch, int len) {}
67 void
68 vline (int character, int len) {}
70 #ifndef HAVE_GNOME
71 void
72 init_pair (int index, char *foreground, char *background) {}
73 #endif
75 int has_colors ()
77 return 1;
80 void
81 attrset (int color) { }
83 void
84 do_define_key (int code, char *strcap) {}
86 void
87 load_terminfo_keys () {}
89 int
90 getch ()
92 return getchar ();
95 void
96 mc_refresh (void)