diff options
author | djamp42 <apiasecki@gmail.com> | 2018-07-30 16:10:36 -0400 |
---|---|---|
committer | ytti <saku@ytti.fi> | 2018-07-31 21:11:29 +0300 |
commit | e3b58e85211dd1cffcb0018ca8f8534275b6d383 (patch) | |
tree | fabd1c9e8b7f6cb9632f5347267d154734a99c5c | |
parent | 0ae25a91609646fb818b64d584bec9728d1f74e5 (diff) |
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.
-rw-r--r-- | lib/oxidized/model/axos.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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| |