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
...@@ -51,6 +51,8 @@ It's a game of quick deduction, pattern-recognition, and a little bit o' luck! ...@@ -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. ù hcTogglen the affected-area highlight feature with the hTABn key.
Cycle through the available block-selector styles using hCtrl-Sn. Cycle through the available block-selector styles using hCtrl-Sn.
ù Toggle hcgraphics moden (when supported) with the hCtrl-Gn key.
hDifficulty Leveln: hDifficulty Leveln:
The difficulty level may be chosen when a new game is started (level 1 being 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: ...@@ -87,4 +89,4 @@ your terminal, you can try using these alternatives:
... or use the numeric keypad. ... or use the numeric keypad.
$Id: minesweeper.hlp,v 2.0 2019/09/27 03:01:45 rswindell Exp $ Good luck!
\ No newline at end of file
...@@ -1454,6 +1454,7 @@ function play() ...@@ -1454,6 +1454,7 @@ function play()
console.line_counter = 0; console.line_counter = 0;
console.clear(); console.clear();
console.printfile(help_file); console.printfile(help_file);
if(console.line_counter)
console.pause(); console.pause();
console.clear(); console.clear();
console.aborted = false; console.aborted = false;
...@@ -1463,6 +1464,11 @@ function play() ...@@ -1463,6 +1464,11 @@ function play()
case '\t': case '\t':
highlight = !highlight; highlight = !highlight;
break; 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: case CTRL_R:
console.clear(); console.clear();
full_redraw = true; full_redraw = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment