bin/unboxify @ 8148377ec342

Update subrepo
author Steve Losh <steve@stevelosh.com>
date Tue, 07 Nov 2023 10:05:28 -0500
parents 05ef9c8cbeeb
children (none)
#!/usr/bin/env python3

import sys

for line in sys.stdin:
    for ch in line:
        sys.stdout.write({
            '┤': '+',
            '├': '+',
            '┴': '+',
            '┬': '+',
            '┼': '+',
            '└': '+',
            '┘': '+',
            '┐': '+',
            '┌': '+',
            '│': '|',
            '—': '-',
        }.get(ch, ch))