will8211 / unimatrix

Python script to simulate the display from "The Matrix" in terminal. Uses half-width katakana unicode characters by default, but can use custom character sets. Accepts keyboard controls while running. Based on CMatrix.
GNU General Public License v3.0
1.75k stars 161 forks source link

Revert "Simplify Key_handler to avoid repeated calls to ord()" #16

Closed will8211 closed 6 years ago

will8211 commented 6 years ago

Reverts will8211/unimatrix#14

will8211 commented 6 years ago

Had to revert, I was getting:

Traceback (most recent call last):
  File "/usr/local/bin/unimatrix", line 613, in <module>
    main()
  File "/usr/local/bin/unimatrix", line 608, in main
    curses.wrapper(_main)
  File "/usr/lib/python3.5/curses/__init__.py", line 94, in wrapper
    return func(stdscr, *args, **kwds)
  File "/usr/local/bin/unimatrix", line 555, in _main
    if key.get():
  File "/usr/local/bin/unimatrix", line 407, in get
    chr_kp = chr(kp).lower()
ValueError: chr() arg not in range(0x110000)