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

Matthew Jordan mjordan at digium.com
Wed Oct 23 08:13:20 CDT 2013


On Tue, Oct 22, 2013 at 2:23 PM, George Joseph
<george.joseph at fairview5.com>wrote:

> I'm looking at Rusty Newton's Asterisk 12 chan_pjsip CLI Specification<https://wiki.asterisk.org/wiki/display/AST/Asterisk+12+chan_pjsip+CLI+Specification> and
> wondering about the requirement to wrap the tabular output at 80 columns.
>  Very few people have terminals that are exactly 80 columns anymore and
> force wrapping just doesn't seem like a good thing.   As an Asterisk
> administrator I'm either at my desk with ssh sessions open to clients'
> systems, or I'm on my tablet with an ssh session open.  Neither is ever
> exactly 80 columns.  On my desktop, I like being able to stretch my window
> and get a full 'sip show peers' with 1 peer per line.  On the tablet which
> may be set less than 80 columns, I don't want the output to wrap at 60
> columns because of the screen, then have a forced break 20 columns into the
> next line because that's 80 columns of output.
>
> So, thoughts on removing the 80 column wrap requirement and just letting
> the screen do the wrapping?
>
>
+1 as well

I think striving for an 80 column width is always a good thing, but if it
impacts the readability of the output, it's better to just continue past
the column width.

Matt

-- 
Matthew Jordan
Digium, Inc. | Engineering Manager
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: http://digium.com & http://asterisk.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20131023/fbc1d564/attachment.html>


More information about the asterisk-dev mailing list