On Tue, Nov 23, 2010 at 5:24 PM, Camaleón <noela...@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-requ...@lists.debian.org > with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org > Archive: http://lists.debian.org/pan.2010.11.23.09.24...@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.
-- 竹密岂妨流水过 山高哪阻野云飞 -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/aanlktikuoc4ranbivx0mnms5qxkkjeayz_9vuoes_...@mail.gmail.com