added info about the new commands to help. also e]FRa is removed bc it is no longer useful for anything
This commit is contained in:
@@ -338,6 +338,16 @@
|
||||
<td>--</td>
|
||||
<td>Query device status, replies with <code>\e[0n</code> "device is OK". Can be used to check if the UART works.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>\e]TITLE=…\a</td>
|
||||
<td>Title text</td>
|
||||
<td>Set terminal title. Avoid ", ', < and >. This is a custom ESPTerm OSC command.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>\e]BTNn=…\a</td>
|
||||
<td>1-5, label</td>
|
||||
<td>Set button label. Avoid ", ', < and >. This is a custom ESPTerm OSC command.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>ASCII 24 (18h)</td>
|
||||
<td></td>
|
||||
|
||||
@@ -8,17 +8,17 @@
|
||||
}, 2000);
|
||||
</script>
|
||||
|
||||
<h1>%term_title%</h1>
|
||||
<h1></h1>
|
||||
|
||||
<div id="termwrap">
|
||||
<div id="screen" class="theme-%theme%"></div>
|
||||
|
||||
<div id="buttons">
|
||||
<button data-n="1" class="btn-blue">%btn1%</button><!--
|
||||
--><button data-n="2" class="btn-blue">%btn2%</button><!--
|
||||
--><button data-n="3" class="btn-blue">%btn3%</button><!--
|
||||
--><button data-n="4" class="btn-blue">%btn4%</button><!--
|
||||
--><button data-n="5" class="btn-blue">%btn5%</button>
|
||||
<button data-n="1" class="btn-blue"></button><!--
|
||||
--><button data-n="2" class="btn-blue"></button><!--
|
||||
--><button data-n="3" class="btn-blue"></button><!--
|
||||
--><button data-n="4" class="btn-blue"></button><!--
|
||||
--><button data-n="5" class="btn-blue"></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -31,10 +31,14 @@
|
||||
--><a href="<?= url('about') ?>">About</a>
|
||||
</nav>
|
||||
|
||||
<!-- this avoids having to escape quotes for JSON -->
|
||||
<span class="hidden" id="initial_data">T%term_title%|%btn1%|%btn2%|%btn3%|%btn4%|%btn5%</span>
|
||||
|
||||
<script>
|
||||
// TODO cleanup
|
||||
try {
|
||||
termInit();
|
||||
window.noAutoShow = true;
|
||||
termInit(); // the screen will be loaded via ajax
|
||||
Screen.load(qs('#initial_data').textContent);
|
||||
|
||||
// auto-clear the input box
|
||||
$('#softkb-input').on('input', function(e) {
|
||||
|
||||
Reference in New Issue
Block a user