def reset_screen_size():
self.size = YX(*stdscr.getmaxyx())
- self.size = self.size - YX(self.size.y % 2, 0)
+ self.size = self.size - YX(self.size.y % 4, 0)
self.size = self.size - YX(0, self.size.x % 4)
self.window_width = int(self.size.x / 2)
<option value="alphabetic" selected>w/a/s/d (square grid) or e,d,c,x,s,w (hex grid)</option>
<option value="arrow_or_numpad">arrow keys (square grid) or numpad (hex grid)</option>
</select>
-rows: <input id="n_rows" type="number" step=2 min=10 value=24 />
+rows: <input id="n_rows" type="number" step=4 min=10 value=24 />
cols: <input id="n_cols" type="number" step=4 min=20 value=80 />
command character: <select id="command_char"" >
<option value=":" selected>:</option>
tui.init_wasd();
}, false);
rows_selector.addEventListener('input', function() {
- if (rows_selector.value % 2 != 0) {
+ if (rows_selector.value % 4 != 0) {
return;
}
terminal.initialize();