X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/ledger2?a=blobdiff_plain;f=rogue_chat_nocanvas_monochrome.html;h=d6e8a6ed3798cbf8165ba1333206de5646bec220;hb=4e31e852bd02aa77ce44f0ff8193ee6ca0552f58;hp=0890647eb7d288081664946aea3e6394f02a7d49;hpb=7ef70c5adfd5f1b4a4736199c78ee8209b10805b;p=plomrogue2
diff --git a/rogue_chat_nocanvas_monochrome.html b/rogue_chat_nocanvas_monochrome.html
index 0890647..d6e8a6e 100644
--- a/rogue_chat_nocanvas_monochrome.html
+++ b/rogue_chat_nocanvas_monochrome.html
@@ -4,8 +4,8 @@
-terminal rows:
-terminal columns:
+terminal rows:
+terminal columns:
@@ -279,6 +279,7 @@ let server = {
} else if (tokens[0] === 'UNHANDLED_INPUT') {
tui.log_msg('? unknown command');
} else if (tokens[0] === 'PLAY_ERROR') {
+ tui.log_msg('? ' + tokens[1]);
terminal.blink_screen();
} else if (tokens[0] === 'ARGUMENT_ERROR') {
tui.log_msg('? syntax error: ' + tokens[1]);
@@ -967,7 +968,7 @@ tui.inputEl.addEventListener('keydown', (event) => {
}, false);
rows_selector.addEventListener('input', function() {
- if (rows_selector.value % 4 != 0) {
+ if (rows_selector.value % 4 != 0 || rows_selector.value < 24) {
return;
}
window.localStorage.setItem(rows_selector.id, rows_selector.value);
@@ -975,7 +976,7 @@ rows_selector.addEventListener('input', function() {
tui.full_refresh();
}, false);
cols_selector.addEventListener('input', function() {
- if (cols_selector.value % 4 != 0) {
+ if (cols_selector.value % 4 != 0 || cols_selector.value < 80) {
return;
}
window.localStorage.setItem(cols_selector.id, cols_selector.value);