[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Wondering about the print out function of PS



On Tue, Nov 23, 2010 at 5:24 PM, Camaleón <noelamac@gmail.com> wrote:
> On Tue, 23 Nov 2010 17:03:12 +0800, Magicloud Magiclouds wrote:
>
>> On Tue, Nov 23, 2010 at 4:33 PM, Camaleón wrote:
>
>>>> Sorry, I meant to know how it could be "not wrapping". The source
>>>> somehow confused me.
>>>
>>> Then "ps aux | less -S" to get no wrapping+horizontal scroll? :-?
>>>
>> I meant code-wise, just using printf would give a wrap output, right?
>
> Ah... I haven't read the source code.
>
> Do you see any call to the standard printf() function? It seems ps
> command integrates some output formatting options :-?
>
> Greetings,
>
> --
> Camaleón
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> Archive: [🔎] pan.2010.11.23.09.24.44@gmail.com">http://lists.debian.org/[🔎] pan.2010.11.23.09.24.44@gmail.com
>
>
This is where I got confused. From my understanding of the code, ps
calculates the width of the screen/string, and cut the output source
string "manually".
But I do not know how it gets the width of the screen.

-- 
竹密岂妨流水过
山高哪阻野云飞


Reply to: