Python colorama not working with input? -


finally got colorama working today, , works excellent when printing strings, got common error seems when attempted use colorama input.

here's code:

launch = input(fore.green + "launch attack?(y/n): ") 

screenshot of output:

enter image description here

on system, input() works colors if add

import sphinx.quickstart 

to module.

so here full code.

from colorama import fore import colorama import sphinx.quickstart colorama.init() launch = input(fore.green + "launch attack? (y/n): ") 

(this leads 2 questions:

  1. why not work in first place?
  2. what actual reason? – might dive sphinx source code.)

n.b. if run python via winpty git bash, set convert.

colorama.init(convert=true) 

otherwise, not color current versions.


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -