mirror of
https://github.com/erkin/ponysay
synced 2024-11-10 13:54:16 +00:00
status
Signed-off-by: Mattias Andrée <maandree@operamail.com>
This commit is contained in:
parent
30f3cfc18b
commit
f5f41cf115
5 changed files with 8 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue