Skip to content

Commit

Permalink
fix italics not working in Windows 10
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chn0tr0n committed Aug 8, 2019
1 parent af3392a commit 736fe31
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions css.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
The Bootstrap CSS for Python Developers
AUTHOR: Avik Mukherjee
LICENSE: MIT, Copyright (c) 2019 Avik Mukherjee
HOME: https://github.com/t3chn0tr0n/py_css/
HOME: https://github.com/t3chn0tr0n/termstrap/
'''
from ctypes import windll
import sys
Expand All @@ -12,7 +12,7 @@ class Bootstrap:
def __init__(self):
if sys.platform == 'win32':
kernel32 = windll.kernel32
kernel32.SetConsoleMode(kernel32.GetStdHandle(-11), 7)
kernel32.SetConsoleMode(kernel32.GetStdHandle(-11), 8)

default = '\33[0m'

Expand Down
9 changes: 8 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
from setuptools import setup
from os import path


with open('README.md', encoding='utf-8') as f:
long_description = f.read()


setup(
name='termstrap',
version='1.2.0',
version='1.2.2',
description='Terminal Bootstrap - A Python css file for unicode text formatting in python console output',
long_description=long_description,
long_description_content_type='text/markdown',
author='t3chn0tr0n',
author_email='[email protected]',
url='https://github.com/t3chn0tr0n/termstrap',
Expand Down

0 comments on commit 736fe31

Please sign in to comment.