I'm writing software and using Qprocess to start external console tool
As you see on the screenshot every string in output is truncated to 80 characters.
This output is from that external tool.
What could i do to avoid this?
scr07.jpg
I'm writing software and using Qprocess to start external console tool
As you see on the screenshot every string in output is truncated to 80 characters.
This output is from that external tool.
What could i do to avoid this?
scr07.jpg
Maybe I should, but this tool works good in console and output in console is not truncated
That's weird...
That's because the application queries the terminal for its properties. And since you don't have a terminal here, the program probably assumes 80 characters per line.
What type of terminal (i.e. TERM variable) do you think the console-based program is using when run through QProcess? My guess is that it is "dumb" which has a definition of 80 columns:
You need "dumb" if you do not want colour and other escape codes in the output.
There's no "dumb-wide" or equivalent I can see. You may be able to arrange calling:
before running your desired console program or try setting TERM to "lpr" (line printer), "vanilla" or some other 132 column near-typewriter terminal.
damkrat (6th June 2012)
Chris, thanks a lot!!!!! Now it's clear
Bookmarks