Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am using a template heavy library in c++ and need to understand the template errors. Reading line wrapped template errors is a serious pain.

Is there a way to disable line wrapping in bash without also truncating the output. Additionally, is there a way to do horizontal scrolling on the output.

I have seen this answer, how to make bash not to wrap output?, but the output is truncated.

The solution doesn't have to be bash targeted, if there is method for this using another shell, tmux, piping make output to another program, compiling from within vim, etc, I'll use it. (Except for copy-pasting into gedit)

share|improve this question

1 Answer 1

up vote 0 down vote accepted

More related to your main question (i.e. debugging your template-heavy library), you could use gccfilter for easier reading. In particular -r.

You can of course read the compilation output from a text editor, where the wrapping will be according to your editor:

make >& comp_output && vi comp_output

share|improve this answer
    
A Bash shortcut: vi <(make 2>&1). –  Daniel Andersson Oct 21 '12 at 17:41
    
@DanielAndersson: Good point! Although on some systems I've come across complaints that the input is not from a terminal. But I don't remember the specifics of these systems. –  Karolos Oct 21 '12 at 20:18

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.