File tree Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -8,9 +8,12 @@ let timestamp = esc "_bk;t=" digit* '\007'
8
8
9
9
let color_code = esc '[' (digit | ';' ) * ['a' - 'z' 'A' - 'Z' ]
10
10
11
- let to_delete = timestamp | color_code
11
+ let cursor_show_hide = esc " [?25" ('l' | 'h' )
12
+
13
+ let to_delete = timestamp | color_code | cursor_show_hide
12
14
13
15
rule cleanup buf = parse
14
16
| to_delete { cleanup buf lexbuf }
17
+ | esc { Buffer. add_string buf " \\ 027" ; cleanup buf lexbuf }
15
18
| _ { Buffer. add_string buf (Lexing. lexeme lexbuf); cleanup buf lexbuf }
16
19
| eof { () }
Original file line number Diff line number Diff line change
1
+
2
+ [?25lInstalling to existing venv 'something'
3
+
4
+
5
+ [?25h[09:52:01 #] sudo aptitude install -y package1 package2
6
+
7
+
Original file line number Diff line number Diff line change 452
452
user command error: exit status 1
453
453
454
454
"
455
+ $ dune exec text_cleanup -- log3 | sed 's/\$/%/g' | sed 's/\\ n/\n /g'
456
+ "
457
+ Installing to existing venv 'something'
458
+
459
+
460
+ [09:52:01 #] sudo aptitude install -y package1 package2
461
+
462
+ \\ 027
463
+ "
You can’t perform that action at this time.
0 commit comments