Skip to content

Commit

Permalink
config field but button count
Browse files Browse the repository at this point in the history
  • Loading branch information
MightyPork committed Oct 25, 2017
1 parent 8de41f9 commit 57f7e4b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions _debug_replacements.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
'bm3' => '',
'bm4' => '',
'bm5' => '05',
'button_count' => 5,
'labels_seq' => ESP_DEMO ? 'TESPTerm Web UI DemoOKCancelHelp' : 'TESPTerm local debugOKCancelHelp',
'want_all_fn' => '0',

Expand Down
1 change: 1 addition & 0 deletions lang/en.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
'term.debugbar' => 'Debug internal state',
'term.ascii_debug' => 'Display control codes',
'term.backdrop' => 'Background image URL',
'term.button_count' => 'Button count',

'cursor.block_blink' => 'Block, blinking',
'cursor.block_steady' => 'Block, steady',
Expand Down
5 changes: 5 additions & 0 deletions pages/cfg_term.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,11 @@
<input type="hidden" id="show_buttons" name="show_buttons" value="%show_buttons%">
</div>

<div class="Row">
<label for="button_count"><?= tr('term.button_count') ?></label>
<input type="number" step=1 min=0 max=5 name="button_count" id="button_count" value="%h:button_count%" required>
</div>

<div class="Row">
<label><?= tr("term.buttons") ?></label>
<input class="tiny" type="text" name="btn1" id="btn1" value="%h:btn1%">
Expand Down

0 comments on commit 57f7e4b

Please sign in to comment.