Re: Wondering about the print out function of PS

2010-11-23 Thread Carl Johnson
Magicloud Magiclouds writes: > On Tue, Nov 23, 2010 at 6:24 PM, Jochen Schulz wrote: >> Camaleón: >>> On Tue, 23 Nov 2010 17:29:49 +0800, Magicloud Magiclouds wrote: >>> But I do not know how it gets the width of the screen. >>> >>> Well... gathering information about the running terminal i

Re: Wondering about the print out function of PS

2010-11-23 Thread Magicloud Magiclouds
On Tue, Nov 23, 2010 at 6:24 PM, Jochen Schulz wrote: > Camaleón: >> On Tue, 23 Nov 2010 17:29:49 +0800, Magicloud Magiclouds wrote: >> >>> But I do not know how it gets the width of the screen. >> >> Well... gathering information about the running terminal is possible: >> >> s...@stt008:~$ stty -

Re: Wondering about the print out function of PS

2010-11-23 Thread Carl Johnson
Jochen Schulz writes: > Camaleón: >> On Tue, 23 Nov 2010 17:29:49 +0800, Magicloud Magiclouds wrote: >> >>> But I do not know how it gets the width of the screen. >> >> Well... gathering information about the running terminal is possible: >> >> s...@stt008:~$ stty -a | grep column >> speed 384

Re: Wondering about the print out function of PS

2010-11-23 Thread Jochen Schulz
Camaleón: > On Tue, 23 Nov 2010 17:29:49 +0800, Magicloud Magiclouds wrote: > >> But I do not know how it gets the width of the screen. > > Well... gathering information about the running terminal is possible: > > s...@stt008:~$ stty -a | grep column > speed 38400 baud; rows 63; columns 86; line

Re: Wondering about the print out function of PS

2010-11-23 Thread Camaleón
On Tue, 23 Nov 2010 17:29:49 +0800, Magicloud Magiclouds wrote: > On Tue, Nov 23, 2010 at 5:24 PM, Camaleón wrote: >>> 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

Re: Wondering about the print out function of PS

2010-11-23 Thread Magicloud Magiclouds
On Tue, Nov 23, 2010 at 5:24 PM, Camaleón 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

Re: Wondering about the print out function of PS

2010-11-23 Thread Camaleón
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 co

Re: Wondering about the print out function of PS

2010-11-23 Thread Magicloud Magiclouds
On Tue, Nov 23, 2010 at 4:33 PM, Camaleón wrote: > On Tue, 23 Nov 2010 16:12:50 +0800, Magicloud Magiclouds wrote: > >> On Tue, Nov 23, 2010 at 3:48 PM, Camaleón wrote: >>> On Tue, 23 Nov 2010 14:38:33 +0800, Magicloud Magiclouds wrote: >>>   The output of `ps`, is trunked by the width of the

Re: Wondering about the print out function of PS

2010-11-23 Thread Camaleón
On Tue, 23 Nov 2010 16:12:50 +0800, Magicloud Magiclouds wrote: > On Tue, Nov 23, 2010 at 3:48 PM, Camaleón wrote: >> On Tue, 23 Nov 2010 14:38:33 +0800, Magicloud Magiclouds wrote: >> >>>   The output of `ps`, is trunked by the width of the terminal, >>>   without >>> wrapping like `ls`. >> >> (.

Re: Wondering about the print out function of PS

2010-11-23 Thread Magicloud Magiclouds
Sorry, I meant to know how it could be "not wrapping". The source somehow confused me. On Tue, Nov 23, 2010 at 3:48 PM, Camaleón wrote: > On Tue, 23 Nov 2010 14:38:33 +0800, Magicloud Magiclouds wrote: > >>   The output of `ps`, is trunked by the width of the terminal, without >> wrapping like `l

Re: Wondering about the print out function of PS

2010-11-22 Thread Camaleón
On Tue, 23 Nov 2010 14:38:33 +0800, Magicloud Magiclouds wrote: > The output of `ps`, is trunked by the width of the terminal, without > wrapping like `ls`. (...) You can force wrapping with "-w" (or "w") modifier: ps auxw Greetings, -- Camaleón -- To UNSUBSCRIBE, email to debian-user-r