From 34aa79ca27211b06678e0aaf22f78a1b32ae5387 Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Sun, 27 Nov 2016 20:14:16 -0600 Subject: [PATCH] remove captured delimiter characters from output --- lib/rex/ui/text/output.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rex/ui/text/output.rb b/lib/rex/ui/text/output.rb index 448d7c02a4..05869acf26 100644 --- a/lib/rex/ui/text/output.rb +++ b/lib/rex/ui/text/output.rb @@ -71,8 +71,8 @@ class Output < Rex::Ui::Output print("\r\033[K" + msg + "\n") if input and input.prompt print("\r\033[K") - print(input.prompt) - print(input.line_buffer) + print(input.prompt.tr("\001\002", '')) + print(input.line_buffer.tr("\001\002", '')) print("\033[u\033[B") # Restore cursor, move down one line end end