annotate bin/dfi @ 684:6010e722b5da

[irbrc] Disable syntax highlighting as it slows down things Reference: https://github.com/ruby/irb/issues/292
author nanaya <me@nanaya.pro>
date Wed, 14 Sep 2022 19:06:13 +0900
parents 006c273399fb
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
277
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1 #!/usr/bin/env python
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
2
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
3 import os
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
4 import sys
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
5
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
6 rows = sys.stdin.readlines()
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
7
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
8 for row in rows:
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
9 if row.find(' ', 1, 49) == -1:
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
10 row = row[0:48] + ' ' + row[48:]
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
11 data = row.split(None, 5)
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
12 print '|'.join(data)
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
13