Giter Site home page Giter Site logo

Comments (10)

Gator96100 avatar Gator96100 commented on July 24, 2024 2

It might have to do with readline6. Readline7 might work. I'll check it out.

from proxspace.

merlokk avatar merlokk commented on July 24, 2024

It the same for me. I dont know why.

from proxspace.

Gator96100 avatar Gator96100 commented on July 24, 2024

Is there an existing command that should have a colored output?

from proxspace.

iceman1001 avatar iceman1001 commented on July 24, 2024

you can modify "showBanner" function in client/proxmark.c (for RRG or iceman based repo) It has colors

from proxspace.

Gator96100 avatar Gator96100 commented on July 24, 2024

MinGW is a toolchain to compile on Windows natively with no POSIX emulation layer. That means if you want colored output, you need to do it the Windows way. Prior to Windows 10 there were no ansi sequences. The only way is:

SetConsoleTextAttribute( GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_RED );
printf("Hello World!");
SetConsoleTextAttribute( GetStdHandle(STD_OUTPUT_HANDLE), 0x0f);

The reason why there is colored output when you start Proxspace is that the MinGW packages are compiled with msys2 as POSIX emulation layer. Here is a pretty good summery MSYS2 Shell or MinGW-w64 Shell

There are some possibilities to enable colored output:

  • Handle all coloring in the Proxmark source code, with the method described above
  • Changing Proxspace from MinGW shell to msys2 shell, this comes at a performance
    penalty
  • Shipping ProxSpace with a different terminal

from proxspace.

iceman1001 avatar iceman1001 commented on July 24, 2024

Does that setconsoletextattribute work? I tried a somewhat similar techneque with enableing vt escapes but it didn't work.

from proxspace.

iceman1001 avatar iceman1001 commented on July 24, 2024

and yes, that did work, to answer my own question.

from proxspace.

iceman1001 avatar iceman1001 commented on July 24, 2024

mingw is compiled with msys2 and proxmark3 client is compiled with mingw-toolchain (which doesn't have that ansi stuff).. It makes more sense now. However I have a hard time seeing the SetConsoleTextAttribute in a simple define macro way like on linux/apple.

from proxspace.

Gator96100 avatar Gator96100 commented on July 24, 2024

I tried to compile the Proxmark client with msys2 to see what would happen. The problem is that every Makefile and .c/.h file that differentiate between mingw and linux/macOS need to be changed as msys does set other variables that mingw does. I might look into it again when I have more time available.

from proxspace.

iceman1001 avatar iceman1001 commented on July 24, 2024

how about we drop this one?

from proxspace.

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.