Signed-off-by: Mattias Andrée <maandree@operamail.com>
This commit is contained in:
Mattias Andrée 2013-04-12 03:27:53 +02:00
parent 30f3cfc18b
commit f5f41cf115
5 changed files with 8 additions and 4 deletions

View file

@ -2,6 +2,8 @@ Version 3.0.2
New ponies: deepblue, peachbottom, rainbowdrop, strawberrycream, wildflower
Default value for -W has been changed from 40 to 60.
Version 3.0.1
New ponies: harshwhinny

View file

@ -35,7 +35,7 @@ ponysay \- Cowsay reimplementation for ponies
.\" respectively.
\fBponysay\fP displays an image of a pony saying some text provided by the user in a terminal.
If \fImessage\fP is not provided, it accepts standard input, word-wraps the message given at
about 40 columns, and prints the pony saying the given message on standard output.
about 60 columns, and prints the pony saying the given message on standard output.
.PP
If no arguments are provided, the program only accepts standard input piped from another
program, a file or either here documents or here strings (see man bash(1) for details on here

View file

@ -37,7 +37,7 @@ ponysay \- Una reimplementación de cowsay usando ponis
terminal.
.br
Si el \fImesaje\fP no es provisto, ponysay aceptará una orden estándar.
El mensaje debería de tener alrededor de 40 columnas, y el o la poni devería de mostrar este
El mensaje debería de tener alrededor de 60 columnas, y el o la poni devería de mostrar este
mensaje
en una salida estándar.
.PP

View file

@ -282,7 +282,7 @@ balloon style is specified a fallback style will be used.
@itemx --wrap COLUMN
@opindex @option{-W}
@opindex @option{--wrap}
Specify the screen column where the message should be wrapped, this is by default 40,
Specify the screen column where the message should be wrapped, this is by default 460,
as with @command{cowsay}. The balloon's extra width is taken into consideration.
If the argument is not a number, but starts instead with @code{n} (for none or
@ -3005,6 +3005,8 @@ sequences.
@itemize @bullet
@item
New ponies: @file{deepblue}, @file{peachbottom}, @file{rainbowdrop}, @file{strawberrycream}, @file{wildflower}
@item
Default value for @option{-W}, the message wrapping column, has been changed from 40 to 60, to wrap messages better.
@end itemize
@heading Version 3.0.1

View file

@ -905,7 +905,7 @@ class Ponysay():
env_width = os.environ['PONYSAY_FULL_WIDTH'] if 'PONYSAY_FULL_WIDTH' in os.environ else None
if env_width is None: env_width = ''
widthtruncation = gettermsize()[1] if env_width not in ('yes', 'y', '1') else None
messagewrap = 40
messagewrap = 60
if (args.opts['-W'] is not None) and (len(args.opts['-W'][0]) > 0):
messagewrap = args.opts['-W'][0]
if messagewrap[0] in 'nmsNMS': # m is left to n on QWERTY and s is left to n on Dvorak