I have a c++
program and I use the tab character "\t"
to organize my output to a human-readable columns. However, 8-spaces-wide column in bash is too narrow for me. How can I increase it?
Note: In C++ forums people say: "C++ just outputs the character and is not responsible for the visible output". In linux forums people say: "It is the program you use to output to terminal that is responsible for this, probably less
or so."
./a.out
or whatever is the name of the binary. – tohecz Oct 24 '12 at 16:45./a.out > file.txt
, then the file contains the tab character. So obviously, the program sends the tab character to the terminal and it's a role of the terminal to typeout it correctly. – tohecz Oct 24 '12 at 17:20