[rancid] rancid with hp5412 J8697A or hp5406

Kalani Sanders ksanders at asprack.com
Fri Mar 24 20:57:41 UTC 2017


I believe this should do it. Fixed it for me.

 

Replaces "[?7h", "[1L", and "[1M" with CR.

 

According to http://www.inwap.com/pdp10/ansicode.txt

  [1L    Insert blank line at current row (shift screen down)

  [1M    Delete the current line (shift screen up)

  [?7h = DECAWM - AutoWrap Mode, start newline after column 80

 

 

 

--- hpuifilter.c.ORIG   2017-03-24 13:49:49.991710473 -0700

+++ hpuifilter.c        2017-03-24 13:50:35.467645620 -0700

@@ -545,8 +545,8 @@

filter(char *buf, int len)

{

     static regmatch_t  pmatch[1];

-#define        N_REG           16              /* number of regexes in
reg[][] */

-#define        N_CRs           2               /* number of CR
replacements */

+#define        N_REG           19              /* number of regexes in
reg[][] */

+#define        N_CRs           5               /* number of CR
replacements */

     static regex_t     preg[N_REG];

     static char                reg[N_REG][50] = {      /* vt100/220
escape codes */

                                "\x1B""7\x1B\\[1;24r\x1B""8",   /* ds */

@@ -570,6 +570,9 @@

                                /* replace these with CR */

                                "\x1B\\[0m",                    /* me */

                                "\x1B""E",

+                                "\x1B\\[\\?7h",

+                                "\x1B\\[1L",

+                                "\x1B\\[1M",

                        };

     char               bufstr[3] = {ESC, '\x07', '\0'},

                        ebuf[256];



      --
     Kalani Sanders
     ksanders at asprack.com
     (714) 902-2019
     www.advancestorage.com


     The contents of this e-mail message and any attachments are confidential and are intended solely for addressee. 
    

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20170324/0d6132b5/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 117032416574302507.jpg
Type: image/jpeg
Size: 3703 bytes
Desc: not available
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20170324/0d6132b5/attachment.jpg>


More information about the Rancid-discuss mailing list