#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "frotz.h"

void 	os_beep (int n) {}
int  	os_char_width (int c) { return 1; }
void 	os_cursor_off (void) {}
void 	os_cursor_on (void) {}
void 	os_display_char (int c) { if (cwin == 0) putchar (c); }
void 	os_display_string (const char *s) { if (cwin == 0) fputs (s, stdout); }
void 	os_draw_picture (int n, int x, int y) {}
void 	os_erase_area (int top, int left, int bottom, int right) {}
void 	os_fatal (const char *s) { fprintf (stderr, "Fatal: %s\n", s); exit (1); }
void 	os_finish_with_sample (void) {}
int  	os_font_data (int n, int *height, int *width) { return 0; }
void 	os_init_screen (void) { h_screen_width = h_screen_cols = 79; }
void 	os_more_prompt (void) {}
int  	os_peek_colour (void) { return 0; }
int  	os_picture_data (int n, int *height, int *width) { return 0; }
void 	os_prepare_sample (int n) {}
void 	os_process_arguments (int argc, char *argv[]) { story_name = (argc == 1) ? "story.dat" : argv[1]; }
int	os_random_seed (void) { return 1; }
int  	os_read_file_name (char *name, const char *default_name, int type) { return 0; }
int  	os_read_key (int timeout) { return getchar (); }
int  	os_read_line (int max, char *buf, int timeout, int width) { gets (buf); return 13; }
void 	os_reset_screen (void) {}
void 	os_scroll_area (int top, int left, int bottom, int right, int pixels) { putchar ('\n'); }
void 	os_set_colour (int fg, int bg) {}
void 	os_set_cursor (int y, int x) {}
void 	os_set_font (int font) {}
void 	os_set_text_style (int style) {}
void 	os_start_sample (int n, int r, int vol) {}
void 	os_stop_sample (void) {}
int  	os_string_width (const char *s) { return strlen (s); }
void 	os_wait_sample (void) {}
