bin/unboxify @ 1273bba3a35a

More
author Steve Losh <steve@stevelosh.com>
date Mon, 19 Aug 2024 08:55:42 -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))