bin/unboxify @ 6c4c335faf47

Merge
author Steve Losh <steve@stevelosh.com>
date Tue, 06 Aug 2024 10:56:16 -0400
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))