comparison rogue3/mdport.h @ 291:5b6855d5d089

Fix a portability issue with md_hasclreol(). Some games' implementation of md_hasclreol() poked around in ncurses internals, which does not work for some ncurses build configuration. Most games did not actually call md_hasclreol(), so it was removed. There is a standard terminfo function which can retrieve the value of the clr_eol capability, so this was used for rogue5.
author John "Elwin" Edwards
date Wed, 27 Dec 2017 10:26:06 -0500
parents 3d4252fa2ed3
children
comparison
equal deleted inserted replaced
290:2b452dbf0138 291:5b6855d5d089
169 int md_readchar(WINDOW *win); 169 int md_readchar(WINDOW *win);
170 int md_setdsuspchar(int c); 170 int md_setdsuspchar(int c);
171 int md_shellescape(void); 171 int md_shellescape(void);
172 void md_sleep(int s); 172 void md_sleep(int s);
173 int md_suspchar(void); 173 int md_suspchar(void);
174 int md_hasclreol(void);
175 int md_unlink(char *file); 174 int md_unlink(char *file);
176 int md_unlink_open_file(const char *file, FILE *inf); 175 int md_unlink_open_file(const char *file, FILE *inf);
177 void md_tstpsignal(void); 176 void md_tstpsignal(void);
178 void md_tstphold(void); 177 void md_tstphold(void);
179 void md_tstpresume(void (*tstp)(int)); 178 void md_tstpresume(void (*tstp)(int));