Skip to content
Snippets Groups Projects
Commit 5fcd0c56 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Add support for Ctrl-G to toggle/re-direct graphics mode

Also if the help screen is exactly the right number of lines where auto-pause
didn't leave any unviewed lines, don't pause twice.
parent e8c6145d
Branches
Tags
No related merge requests found
......@@ -51,6 +51,8 @@ It's a game of quick deduction, pattern-recognition, and a little bit o' luck!
ù hcTogglen the affected-area highlight feature with the hTABn key.
Cycle through the available block-selector styles using hCtrl-Sn.
ù Toggle hcgraphics moden (when supported) with the hCtrl-Gn key.
hDifficulty Leveln:
The difficulty level may be chosen when a new game is started (level 1 being
......@@ -87,4 +89,4 @@ your terminal, you can try using these alternatives:
... or use the numeric keypad.
$Id: minesweeper.hlp,v 2.0 2019/09/27 03:01:45 rswindell Exp $
\ No newline at end of file
Good luck!
......@@ -1454,6 +1454,7 @@ function play()
console.line_counter = 0;
console.clear();
console.printfile(help_file);
if(console.line_counter)
console.pause();
console.clear();
console.aborted = false;
......@@ -1463,6 +1464,11 @@ function play()
case '\t':
highlight = !highlight;
break;
case CTRL_G: // graphics toggle/re-detect
graph = !graph;
if(graph)
graph = cterm.query_ctda(cterm.cterm_device_attributes.pixelops_supported);
// Fall-through
case CTRL_R:
console.clear();
full_redraw = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment