Comments (5)
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.
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.
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.
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.
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)
- how to change gdb program that cgdb use? HOT 1
- Cygwin BUG: [commit: 2022-06-12 208d038] fdopen was not declared in this scope
- Question: How to clear search highlights HOT 5
- cannot stat 'cgdb.htp': No such file or directory HOT 2
- file dialog freezing terminal in msys2/WSL HOT 2
- Cannot Display Color Properly HOT 2
- cgdb bug: remote connect to kdb cannot do twice HOT 3
- ESCape key mixup with readline HOT 2
- how to disable source code display in cgdb windows HOT 3
- utf support HOT 2
- [bug] Assertion in signal_handler on SIG_CHLD HOT 1
- It should be possible to disable makeinfo with configure flags HOT 1
- cgdb doesn't handle different langage path-to-file HOT 1
- REG 7bbd997: Multi-character input sequences are broken HOT 4
- Suggestion: Host release artifacts on Github
- cgdb doesn't support remote debug (gdbserver) HOT 1
- [bug] valgrind cannot display message HOT 3
- Mouse pasting is broken HOT 1
- Compilation from git is broken on fedora 49 HOT 1
- cgdb interprets arguments after -- in certain cases
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cgdb.