Code Monkey home page Code Monkey logo

Comments (9)

MrGreenTea avatar MrGreenTea commented on May 18, 2024 2

Yeah these are ANSI codes for colored output. I've had success with https://github.com/tartley/colorama

from sherlock.

 avatar commented on May 18, 2024 1

Would recommend Colorama 11/10. Actually a very simple fix if it is used.

[Colorama] has the happy side-effect that existing applications or libraries which use ANSI sequences to produce colored output on Linux or Macs can now also work on Windows, simply by calling colorama.init()

Though, I have heard that Colorama is a tad bit slower than Hue.

from sherlock.

sdushantha avatar sdushantha commented on May 18, 2024

I have heard that Hue is very good.
Which one should we use? Hue or Colorama?

from sherlock.

Calinou avatar Calinou commented on May 18, 2024

Hue's README says:

Note: Windows versions below windows 10 do not support ANSI escape sequences so the colors will not be printed in command prompt.

Colorama can also be used to wrap other color libraries on Windows (it will do nothing on other platforms), so you can use both, actually. However, this will only work if you can force Hue to print colors on old Windows versions.

from sherlock.

raphuchur avatar raphuchur commented on May 18, 2024

hue works perfectly
run pip install huepy
add from huepy import * to the importing part of the sherlock.py file

from sherlock.

jcs090218 avatar jcs090218 commented on May 18, 2024

I personally think Colorama's style are better than Hue's style. Below are the comparison of two libraries.

Hue

from hue import *
print red('This string is red')

Colorama

from colorama import Fore
print Fore.RED + 'This string is red'

The point here, if use Hue, the code might end up like print(red('This string is red')). On the other hand, if we use Colorama the code likeliest be like print(Fore.RED + 'This string is red'). Unless the code are not going to change to something more readable, I reckon this would not matter.

from sherlock.

nareddyt avatar nareddyt commented on May 18, 2024

Closed via #71

from sherlock.

TheYahya avatar TheYahya commented on May 18, 2024

Looks like there's still issues in some shells

from sherlock.

sdushantha avatar sdushantha commented on May 18, 2024

Closing this issue as it has been fixed. There is also an option not not have colors which was introduced in #463

from sherlock.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.