X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=new2%2Frogue_chat_nocanvas_monochrome.html;h=d06eb30e6d44a90a929f22f6b8ea21c9f446059c;hb=bdc3960561f676f33a627ff77cc15275b7bf1953;hp=a4aa85deddf6059fc362303531ee3a7400773969;hpb=1115fdca9304abdf8a4cb15df30f9015b32e572b;p=plomrogue2-experiments diff --git a/new2/rogue_chat_nocanvas_monochrome.html b/new2/rogue_chat_nocanvas_monochrome.html index a4aa85d..d06eb30 100644 --- a/new2/rogue_chat_nocanvas_monochrome.html +++ b/new2/rogue_chat_nocanvas_monochrome.html @@ -350,7 +350,7 @@ let tui = { }, log_msg: function(msg) { this.log.push(msg); - while (this.log.length > terminal.rows * 4) { + while (this.log.length > 100) { this.log.shift(); }; this.full_refresh(); @@ -436,7 +436,7 @@ let tui = { }, draw_input: function() { if (this.mode.has_input_prompt) { - for (let y = terminal.rows - this.height_input, i = 0; y < terminal.rows && i < this.input_lines.length; y++, i++) { + for (let y = terminal.rows - this.height_input, i = 0; i < this.input_lines.length; y++, i++) { terminal.write(y, this.window_width, this.input_lines[i]); } } @@ -566,7 +566,7 @@ let explorer = { tui.inputEl.addEventListener('input', (event) => { if (tui.mode.has_input_prompt) { - let max_length = tui.window_width * terminal.rows - tui.input_prompt.length; + let max_length = tui.window_width * terminal.rows - tui.input_prompt.length; if (tui.inputEl.value.length > max_length) { tui.inputEl.value = tui.inputEl.value.slice(0, max_length); };