Mercurial > hg > early-roguelike
comparison srogue/rogue.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 |
---|---|
65 int md_readchar(WINDOW *win); | 65 int md_readchar(WINDOW *win); |
66 int md_setdsuspchar(int c); | 66 int md_setdsuspchar(int c); |
67 int md_shellescape(void); | 67 int md_shellescape(void); |
68 void md_sleep(int s); | 68 void md_sleep(int s); |
69 int md_suspchar(void); | 69 int md_suspchar(void); |
70 int md_hasclreol(void); | |
71 int md_unlink(char *file); | 70 int md_unlink(char *file); |
72 int md_unlink_open_file(const char *file, FILE *inf); | 71 int md_unlink_open_file(const char *file, FILE *inf); |
73 void md_tstpsignal(void); | 72 void md_tstpsignal(void); |
74 void md_tstphold(void); | 73 void md_tstphold(void); |
75 void md_tstpresume(void); | 74 void md_tstpresume(void); |