Home:ALL Converter>Python Curses addstr glitch

Python Curses addstr glitch

Ask Time:2015-06-30T04:32:38         Author:TesserWreck

Json Formatter

When I try to use alt-code characters with stdscr.addstr('│─┼') it just prints a garbled mess of characters to the console. I know it is possible to use stdscr.addch(<alt-code> or <curses.ACS_...>) but I find this method to be cumbersome. Is there some way to make addstr properly output these extra characters?

I am on Windows 8.1 using Python 3.4 with the curses library found here.

Author:TesserWreck,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/31125036/python-curses-addstr-glitch
yy