configurable button codes

This commit is contained in:
2017-09-06 16:13:14 +02:00
parent a673843a63
commit 0af62f47e6
17 changed files with 186 additions and 1092 deletions
+9
View File
@@ -134,6 +134,15 @@
<span class="mq-no-phone">&nbsp;ms</span>
</div>
<div class="Row">
<label><?= tr("term.button_msgs") ?></label>
<input class="short" type="text" name="bm1" id="bm1" value="%h:bm1%">&nbsp;
<input class="short" type="text" name="bm2" id="bm2" value="%h:bm2%">&nbsp;
<input class="short" type="text" name="bm3" id="bm3" value="%h:bm3%">&nbsp;
<input class="short" type="text" name="bm4" id="bm4" value="%h:bm4%">&nbsp;
<input class="short" type="text" name="bm5" id="bm5" value="%h:bm5%">
</div>
<div class="Row checkbox" >
<label><?= tr('term.fn_alt_mode') ?></label><!--
--><span class="box" tabindex=0 role=checkbox></span>
+16 -9
View File
@@ -34,24 +34,31 @@
</td>
</tr>
<tr>
<td>`\e]0;<i>title</i>\a`</td>
<td>Set screen title (this is a standard OSC command)</td>
<td>`\e]0;<i>t</i>\a`</td>
<td>Set screen title to _t_ (this is a standard OSC command)</td>
</tr>
<tr>
<td>
<code>
\e]<i>81</i>;<i>btn1</i>\a \\
\e]<i>82</i>;<i>btn2</i>\a \\
\e]<i>83</i>;<i>btn3</i>\a \\
\e]<i>84</i>;<i>btn4</i>\a \\
\e]<i>85</i>;<i>btn5</i>\a \\
\e]<i>80+n</i>;<i>t</i>\a
</code>
</td>
<td>
Set button 1-5 label - eg.`\e]81;Yes\a`
Set label for button _n_ = 1-5 (code 81-85) to _t_ - e.g.`\e]81;Yes\a`
sets the first button text to "Yes".
</td>
</tr>
<tr>
<td>
<code>
\e]<i>90+n</i>;<i>m</i>\a
</code>
</td>
<td>
Set message for button _n_ = 1-5 (code 81-85) to _m_ - e.g.`\e]94;iv\a`
sets the 3rd button to send string "iv" when pressed.
</td>
</tr>
<tr>
<td>
<code>
@@ -88,7 +95,7 @@
</tr>
<tr>
<td>`\e[8;<i>r</i>;<i>c</i>t`</td>
<td>Set screen size (this is a command borrowed from xterm)</td>
<td>Set screen size to _r_ rows and _c_ columns (this is a command borrowed from Xterm)</td>
</tr>
</tbody>
</table>
+3 -3
View File
@@ -5,7 +5,7 @@
console.error("Page load failed, refreshing…");
location.reload(true);
}
}, 2000);
}, 3000);
</script>
<h1><!-- Screen title gets loaded here by JS --></h1>
@@ -48,10 +48,10 @@
});
} catch(e) {
console.error(e);
console.error("Fail, reloading in 1s…");
console.error("Fail, reloading in 3s…");
setTimeout(function() {
location.reload(true);
}, 1000);
}, 3000);
}
function toggleSoftKb(yes) {