Next: Printing in TTY with KMS, Previous: Pony quote infrastructure, Up: Inner workings [Contents][Index]
Balloon style files are located in the directory balloons/, the ones ending
with .say applies to ponysay
and the ones ending with .think
applies to ponythink
.
Balloon style consists of 20 strings. Each string is defined on separate lines, by
their name and their value separated with a colon (name:value
), if the name is
empty it continues the last one on a new line in the value. Only 10 of the strings
may be multi-lined: nw, nnw, n, nne, ne, sw,
ssw, s, sse and se.
The following strings are used, and must be defined in the files:
The character for the link to the balloon directed as \
.
The character for the link to the balloon directed as /
.
The beginning of the balloon’s line where the message is located if and only if the message contains only one line.
The end of the balloon’s line where the message is located if and only if the message contains only one line.
The top left corner of the balloon.
If both this string and the nne string fits between the top corners, this is printed directly to the right of the top left corner.
The top edge of the balloon.
If both this string and the nnw string fits between the top corners, this is printed directly to the right of the top left corner.
The top right corner of the balloon.
The end of the balloon’s line where the message’s first line is located if and only if the message contains more than one line.
The right edge of the balloon.
The end of the balloon’s line where the message’s last line is located if and only if the message contains more than one line.
The bottom right corner of the balloon.
If both this string and the ssw string fits between the bottom corners, this is printed directly to the left of the bottom right corner.
The bottom edge of the balloon.
If both this string and the sse string fits between the bottom corners, this is printed directly to the right of the bottom left corner.
The bottom left corner of the balloon.
The beginning of the balloon’s line where the message’s last line is located if and only if the message contains more than one line.
The left edge of the balloon.
The beginning of the balloon’s line where the message’s first line is located if and only if the message contains more than one line.
Next: Printing in TTY with KMS, Previous: Pony quote infrastructure, Up: Inner workings [Contents][Index]