diff --git a/.gitmodules b/.gitmodules index 111c39c..73dce8c 100644 --- a/.gitmodules +++ b/.gitmodules @@ -2,3 +2,6 @@ path = lib/pyyaml url = https://github.com/anishathalye/pyyaml ignore = dirty +[submodule "lib/colorama"] + path = lib/colorama + url = https://github.com/tartley/colorama.git diff --git a/bin/dotbot b/bin/dotbot index 78a0725..66f5d32 100755 --- a/bin/dotbot +++ b/bin/dotbot @@ -31,6 +31,12 @@ if sys.version_info[0] >= 3: else: inject('pyyaml/lib') +# Support ANSI sequences under windows +if os.name == "nt": + inject('colorama') + import colorama + colorama.init() + if os.path.exists(os.path.join(PROJECT_ROOT_DIRECTORY, 'dotbot')): if PROJECT_ROOT_DIRECTORY not in sys.path: sys.path.insert(0, PROJECT_ROOT_DIRECTORY) diff --git a/lib/colorama b/lib/colorama new file mode 160000 index 0000000..44dc8af --- /dev/null +++ b/lib/colorama @@ -0,0 +1 @@ +Subproject commit 44dc8af9bc8111b70dd046a822bb26c851ba3687