From 07abeb9b0a9f04d7df3f1abb9c3eaffd19b8d251 Mon Sep 17 00:00:00 2001 From: Julian Noble Date: Thu, 26 Sep 2024 03:40:35 +1000 Subject: [PATCH] repl fix again --- src/modules/punk/repl-0.1.tm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/punk/repl-0.1.tm b/src/modules/punk/repl-0.1.tm index a3f2de10..ac08c9e5 100644 --- a/src/modules/punk/repl-0.1.tm +++ b/src/modules/punk/repl-0.1.tm @@ -1378,11 +1378,11 @@ proc repl::repl_handler {inputchan prompt_config} { #got_dimensions - todo - try spinner? #puts -nonewline stdout [punk::ansi::move $rows 4]$msg #use cursorsave_ version which avoids get_cursor_pos_list call + set msglen [ansistring length $msg] punk::console::cursorsave_move_emitblock_return $rows [expr {$cols - $msglen -1}] $msg } else { #no mechanism to get console dimensions #we are reduced to continuously spewing lines. - set msglen [ansistring length $msg] puts stderr $msg }