From 3560278b13546c878ab16b7f6088d2da3f3ae41a Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Tue, 23 Nov 2021 11:22:16 -0600 Subject: [PATCH] Allow customizing the eyes and tongue Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com> --- src/Cowsay.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Cowsay.jl b/src/Cowsay.jl index 936586b..ffa1c36 100644 --- a/src/Cowsay.jl +++ b/src/Cowsay.jl @@ -9,7 +9,7 @@ include("cows/default.cow.jl") Prints a cow saying `message` as unwrapped text. """ -function cowsay(message::AbstractString) +function cowsay(message::AbstractString; eyes="oo", tongue=" ") messagelines = split(message, "\n") nlines = length(messagelines) @@ -54,7 +54,7 @@ function cowsay(message::AbstractString) ) end -println(string(balloon, default())) +println(string(balloon, default(eyes=eyes, tongue=tongue))) end