[asterisk-dev] Wrapping CLI output at 80 columns.

George Joseph george.joseph at fairview5.com
Wed Oct 23 13:41:58 CDT 2013


On Wed, Oct 23, 2013 at 11:27 AM, George Joseph <george.joseph at fairview5.com
> wrote:

>
> On Wed, Oct 23, 2013 at 10:26 AM, Paul Belanger <
> paul.belanger at polybeacon.com> wrote:
>
>> On 13-10-23 10:51 AM, Rusty Newton wrote:
>>
>>> On Tue, Oct 22, 2013 at 2:23 PM, George Joseph
>>> <george.joseph at fairview5.com> wrote:
>>>
>>>
>>>> So, thoughts on removing the 80 column wrap requirement and just
>>>> letting the
>>>> screen do the wrapping?
>>>>
>>>
>>> As I mentioned in the dev chat, I'm a +1 for this as well. I don't
>>> feel like the 80 character limit is relevant any longer.
>>>
>>>  So, python PEP8[1] recently relaxed there guidelines, so I think we
>> could also follow suit.  I still think 80 should be aimed for, but allowing
>> up to 100 being the max. I still think we should have something for the
>> upper limit.
>>
>> [1] http://www.python.org/dev/**peps/pep-0008/#maximum-line-**length<http://www.python.org/dev/peps/pep-0008/#maximum-line-length>
>>
>> I'm OK with striving for a 100 character limit as a design guideline but
> I do think people are used to more considering that sip show peers needs
> 140 to not wrap (and is quite useful).  OTOH, Rusty's mock up for pjsip
> show endpoints needs only 95.
>
> I'll start with 100 and see how it looks with a bunch of real endpoints.
>
>
Hmmm.  Here's a real-world example with no wrapping or limits...

http://pastebin.com/R1qgqxKv

It's already 128 characters wide.

How would you wrap or limit this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20131023/5cece7a7/attachment.html>


More information about the asterisk-dev mailing list