Mercurial > hg > early-roguelike
comparison urogue/main.c @ 269:a413bc97d3ea
UltraRogue: fix the arrow keys.
The startup sequence now calls keypad() to turn on curses recognition
of special keys.
author | John "Elwin" Edwards |
---|---|
date | Tue, 28 Feb 2017 21:14:53 -0500 |
parents | 4ab49e42dd6a |
children | 1db299e868b8 |
comparison
equal
deleted
inserted
replaced
268:4ab49e42dd6a | 269:a413bc97d3ea |
---|---|
200 /* Set up windows */ | 200 /* Set up windows */ |
201 | 201 |
202 cw = newwin(LINES, COLS, 0, 0); | 202 cw = newwin(LINES, COLS, 0, 0); |
203 mw = newwin(LINES, COLS, 0, 0); | 203 mw = newwin(LINES, COLS, 0, 0); |
204 hw = newwin(LINES, COLS, 0, 0); | 204 hw = newwin(LINES, COLS, 0, 0); |
205 keypad(cw, TRUE); | |
205 | 206 |
206 if (use_savedir) { | 207 if (use_savedir) { |
207 if (!restore(file_name)) | 208 if (!restore(file_name)) |
208 exit(1); | 209 exit(1); |
209 } | 210 } |