bin/unboxify @ 4e1d6d6873fe

More
author Steve Losh <steve@stevelosh.com>
date Wed, 08 May 2024 10:22:18 -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))