tofergregg / IBM-Wheelwriter-Hack

Turning an IBM Wheelwriter into a unique printer
MIT License
100 stars 11 forks source link

Send event codes / actualTypewriterNano.py #15

Open seniZH opened 3 years ago

seniZH commented 3 years ago

Thanks for the very nice project :) I can now use my WW5 as a printer for my Arduino projects :)

As I'm not a pro in Python yet, I have some problems to send the event codes (e.g. for bold) through the terminal... for: software/python_scripts/actualTypewriterNano.py

How can I trigger the event 21, or 2? Sorry for my question, I guess, it is very simple... But all my tries and www searches failed... :(

I can start the program with mac terminal and also writing in the editor screen is possible without problem, but only "normal" text without bold, underline...

elif event == 21: screen.addstr('(underline)') event = 3 # convert to code for underline

elif event == 2: screen.addstr('(bold)')

Thank you very much