Giter Site home page Giter Site logo

Comments (5)

mmueller avatar mmueller commented on September 24, 2024

This is a really good suggestion. It would be awesome if the gdb pane was a
full terminal. But since it's not, if we can make sure programs know it's
not a tty, that's an improvement.

On Fri, May 15, 2015 at 2:06 PM, yurivict [email protected] wrote:

Currently terminal sequences are printed w/out being interpreted, trashing
up the output.

I understand that this may be difficult to fix. So you just need to turn
off the bit returned by "isatty(fileno(stdin))".


Reply to this email directly or view it on GitHub
#61.

from cgdb.

zed0 avatar zed0 commented on September 24, 2024

If it's only colours you're wanting, I've added a hack in for basic 16 colour support in my fork: https://github.com/zed0/cgdb
It's liable to pick up false positives from things that look sort of like ANSI sequences because the 0x1B character is swallowed somewhere on the way, but other than that it works reasonably.

Disclaimer: I realise that this is a non-ideal way to resolve this, and that there are more elegant solutions in the pipeline, this is just something I hacked together quickly.

from cgdb.

yurivict avatar yurivict commented on September 24, 2024

I was more after not seeing raw terminal escape sequences. Colors are rarely important during debugging. But these terminal sequences are distracting.

Ideally cgdb should redirect output into the separate window with the real terminal emulation, not just print into the same window. But this might be difficult to do.

from cgdb.

brasko avatar brasko commented on September 24, 2024

On Fri, May 22, 2015 at 02:30:52AM -0700, yurivict wrote:

I was more after not seeing raw terminal escape sequences. Colors are rarely important during debugging. But these terminal sequences are distracting.

Ideally cgdb should redirect output into the separate window with the real terminal emulation, not just print into the same window. But this might be difficult to do.

The way I recommend doing this today is starting the program you would
like to debug from the terminal, and then attaching to it with cgdb from
another terminal. This is easier to do if you use a terminal emulator
like tmux or screen. This approach doesn't work great when you have to
debug the startup of the executable, so eventually I'll be working on a
solution for that as well.

Thanks,
Bob Rossi

from cgdb.

mikesart avatar mikesart commented on September 24, 2024

Most color escape sequences should work now. If you're still having issues, please re-open with a new bug and repro details. Thanks!

from cgdb.

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.