summaryrefslogblamecommitdiffstats
path: root/crawl-ref/source/libdos.h
blob: 99f326e6de52f2085c4420d7dd94ed7d7b4fd853 (plain) (tree)
1
2
3
4
5
6
7
8





                                                                           

   


                    
                  
                  
 

                                      

                   


                          
                                                      



                                                          
                            
               
                                                      
 
                                                                            
                            



                           
                        
 





                                                  
      
/*
 *  File:       libdos.h
 *  Summary:    Functions for DOS support.
 *  Written by: Darshan Shaligram
 *
 *  Added for Crawl Reference by dshaligram on Wed Nov 22 08:41:20 2006 UTC
 */

#ifndef __LIBDOS_H__
#define __LIBDOS_H__

#include <conio.h>
#include <stdio.h>

typedef unsigned char screen_buffer_t;

void init_libdos();

int get_number_of_lines();
int get_number_of_cols();

inline void gotoxy_sys(int x, int y) { gotoxy(x, y); }
inline void enable_smart_cursor(bool ) { }
inline bool is_smart_cursor_enabled()  { return (false); }
void set_cursor_enabled(bool enabled);
bool is_cursor_enabled();
void clear_to_end_of_line();
int getch_ck();
static inline void set_mouse_enabled(bool enabled) { }

void message_out(int *mline, int colour, const char *str, int firstcol = 0);
void clear_message_window();
inline void update_screen()
{
}

void putwch(unsigned c);

inline void put_colour_ch(int colour, unsigned ch)
{
    textattr(colour);
    putwch(ch);
}

#endif