From 6a89dadf7b5af34d582b5f09b855c7dc96b481a4 Mon Sep 17 00:00:00 2001 From: Ultra2D Date: Fri, 10 Feb 2017 10:18:32 +0100 Subject: Procurve convert next line (NEL) to new line --- lib/oxidized/model/procurve.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/oxidized/model') diff --git a/lib/oxidized/model/procurve.rb b/lib/oxidized/model/procurve.rb index c117df3..0b8b672 100644 --- a/lib/oxidized/model/procurve.rb +++ b/lib/oxidized/model/procurve.rb @@ -6,6 +6,11 @@ class Procurve < Oxidized::Model comment '! ' + # replace next line control sequence with a new line + expect /\eE/ do |data, re| + data.gsub re, "\n" + end + # replace all used vt100 control sequences expect /\e\[\??\d+(;\d+)*[A-Za-z]/ do |data, re| data.gsub re, '' -- cgit v1.2.1