Too flashy

Signed-off-by: Pablo Lezaeta <prflr88@gmail.com>
This commit is contained in:
Pablo Lezaeta 2013-04-12 00:58:22 -03:00
commit 73172a1bc1
7 changed files with 12 additions and 7 deletions

1
.gitignore vendored
View file

@ -15,6 +15,7 @@
## Compile files
/completion/*-completion.pony*
/completion/*-completion-think.*
/completion/pony*.pony*
/truncater

View file

@ -2,6 +2,8 @@ Version 3.0.2
New ponies: deepblue, hairytipper, 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
@ -3006,6 +3006,8 @@ sequences.
@item
New ponies: @file{deepblue}, @file{hairytipper}, @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

@ -20,9 +20,9 @@ HEIGHT: 23
$$$
$\$ 
$\$ 
$\$ 
$balloon34$
$\$ 
$\$ 
$\$ 

 

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