home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 6 File / 06-File.zip / mc454src.zip / mc-4.5.4.src / mc-4.5.4 / src / xslint.c < prev    next >
C/C++ Source or Header  |  1999-01-04  |  2KB  |  99 lines

  1. /* Routines expected by the Midnight Commander
  2.    
  3.    Copyright (C) 1999 The Free Software Foundation.
  4.  
  5.    Author Miguel de Icaza
  6.  
  7.    FIXME: This expects the user to always use slang instead of ncurses.
  8.    
  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.
  13.    
  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.
  18.  
  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.
  22.  
  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.
  25.  
  26.    */
  27.  
  28. #include <stdio.h>
  29.  
  30. int
  31. interrupts_enabled (void) { return 0; }
  32.  
  33. void
  34. enable_interrupt_key(void) {}
  35.    
  36. void
  37. disable_interrupt_key(void) {}
  38.  
  39. /* FIXME: We could provide a better way of doing this */
  40. int
  41. got_interrupt () { return 0; }
  42.  
  43. void
  44. slang_init (void) {}
  45.  
  46. void
  47. slang_set_raw_mode (void) {}
  48.  
  49. void
  50. slang_prog_mode (void) {}
  51.  
  52. void
  53. slang_shell_mode (void) {}
  54.  
  55. void
  56. slang_shutdown () {}
  57.  
  58. void
  59. slang_keypad (int set) {}
  60.  
  61. void
  62. set_slang_delay (int v) {}
  63.  
  64. void
  65. hline (int ch, int len) {}
  66.  
  67. void
  68. vline (int character, int len) {}
  69.  
  70. #ifndef HAVE_GNOME
  71. void
  72. init_pair (int index, char *foreground, char *background) {}
  73. #endif
  74.  
  75. int has_colors ()
  76. {
  77.     return 1;
  78. }
  79.  
  80. void
  81. attrset (int color) { }
  82.  
  83. void
  84. do_define_key (int code, char *strcap) {}
  85.  
  86. void
  87. load_terminfo_keys () {}
  88.  
  89. int
  90. getch ()
  91. {
  92.     return getchar ();
  93. }
  94.  
  95. void
  96. mc_refresh (void)
  97. {
  98. }
  99.