Skip to content

Commit

Permalink
Fixes #21
Browse files Browse the repository at this point in the history
  • Loading branch information
heuer committed Sep 12, 2016
1 parent f0a0799 commit f3fe0c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Changes
0.1.8 -- 2016-mm-dd
-------------------
* Removed ``utils.matrix_with_border_iter``
* Fixed #21 (type error while writing to terminal under Windows)



Expand Down
2 changes: 1 addition & 1 deletion segno/writers.py
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ def write_terminal_win(matrix, version, border=None): # pragma: no cover
if not res:
raise OSError('Cannot find information about the console. '
'Not running on the command line?')
default_color = struct.unpack("hhhhHhhhhhh", csbi.raw)[4]
default_color = struct.unpack(b'hhhhHhhhhhh', csbi.raw)[4]
set_color = partial(ctypes.windll.kernel32.SetConsoleTextAttribute, std_out)
colors = (240, default_color)
for row in matrix_iter(matrix, version, scale=1, border=border):
Expand Down

0 comments on commit f3fe0c3

Please sign in to comment.