From e3b58e85211dd1cffcb0018ca8f8534275b6d383 Mon Sep 17 00:00:00 2001 From: djamp42 Date: Mon, 30 Jul 2018 16:10:36 -0400 Subject: Fix first prompt has non-printable characters First prompt has Auto-wrap at the start of the prompt, all other prompts do not have this, match 0 or 1 on the auto wrap. --- lib/oxidized/model/axos.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/oxidized/model') diff --git a/lib/oxidized/model/axos.rb b/lib/oxidized/model/axos.rb index 9c1a663..42f9ab4 100644 --- a/lib/oxidized/model/axos.rb +++ b/lib/oxidized/model/axos.rb @@ -1,5 +1,5 @@ class AxOS < Oxidized::Model - prompt /([\w.@()-]+[#]\s?)$/ + prompt /(\x1b\[\?7h)?([\w.@()-]+[#]\s?)$/ comment '! ' cmd 'show running-config | nomore' do |cfg| -- cgit v1.2.1