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
No related branches found
No related tags found
No related merge requests found
......@@ -50,6 +50,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:
......@@ -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,7 +1454,8 @@ function play()
console.line_counter = 0;
console.clear();
console.printfile(help_file);
console.pause();
if(console.line_counter)
console.pause();
console.clear();
console.aborted = false;
full_redraw = true;
......@@ -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.
Finish editing this message first!
Please register or to comment