home · contact · privacy
Use terminal-size-indepenent max log length.
authorChristian Heller <c.heller@plomlompom.de>
Mon, 2 Nov 2020 04:07:46 +0000 (05:07 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Mon, 2 Nov 2020 04:07:46 +0000 (05:07 +0100)
new2/rogue_chat_nocanvas_monochrome.html

index a4aa85deddf6059fc362303531ee3a7400773969..92ac22a55f405ee806d6df317039092fb96a3cf1 100644 (file)
@@ -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();