From 5f293b512737db4c7efb1d3eb8bea30cbd7c2cc1 Mon Sep 17 00:00:00 2001 From: aycabta Date: Thu, 23 Sep 2021 23:41:45 +0900 Subject: [PATCH] Reset all font settings at left end of dialog --- lib/reline/line_editor.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb index da8787af49..43598b90b8 100644 --- a/lib/reline/line_editor.rb +++ b/lib/reline/line_editor.rb @@ -721,9 +721,8 @@ def add_dialog_proc(name, p, context = nil) else @output.write ' ' * @block_elem_width end - @output.write "\e[39m" end - @output.write "\e[49m" + @output.write "\e[0m" Reline::IOGate.move_cursor_column(dialog.column) move_cursor_down(1) if i < (dialog.contents.size - 1) end