<htmllang="en"><head><metacharset="UTF-8"/><metaname="viewport"content="width=device-width, initial-scale=1.0"/><title>Home · cowsay.jl</title><scriptdata-outdated-warnersrc="assets/warner.js"></script><linkrel="canonical"href="https://millironx.com/Cowsay.jl/"/><linkhref="https://cdnjs.cloudflare.com/ajax/libs/lato-font/3.0.0/css/lato-font.min.css"rel="stylesheet"type="text/css"/><linkhref="https://cdnjs.cloudflare.com/ajax/libs/juliamono/0.039/juliamono-regular.css"rel="stylesheet"type="text/css"/><linkhref="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/fontawesome.min.css"rel="stylesheet"type="text/css"/><linkhref="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/solid.min.css"rel="stylesheet"type="text/css"/><linkhref="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/brands.min.css"rel="stylesheet"type="text/css"/><linkhref="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.13.11/katex.min.css"rel="stylesheet"type="text/css"/><script>documenterBaseURL="."</script><scriptsrc="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js"data-main="assets/documenter.js"></script><scriptsrc="siteinfo.js"></script><scriptsrc="../versions.js"></script><linkclass="docs-theme-link"rel="stylesheet"type="text/css"href="assets/themes/documenter-dark.css"data-theme-name="documenter-dark"data-theme-primary-dark/><linkclass="docs-theme-link"rel="stylesheet"type="text/css"href="assets/themes/documenter-light.css"data-theme-name="documenter-light"data-theme-primary/><scriptsrc="assets/themeswap.js"></script></head><body><divid="documenter"><navclass="docs-sidebar"><divclass="docs-package-name"><spanclass="docs-autofit"><ahref>cowsay.jl</a></span></div><formclass="docs-search"action="search/"><inputclass="docs-search-query"id="documenter-search-query"name="q"type="text"placeholder="Search docs"/></form><ulclass="docs-menu"><liclass="is-active"><aclass="tocitem"href>Home</a><ulclass="internal"><li><aclass="tocitem"href="#Usage"><span>Usage</span></a></li></ul></li><li><aclass="tocitem"href="cows/">Available Cowfiles</a></li><li><aclass="tocitem"href="cowfiles/">Make your own Cowfile</a></li></ul><divclass="docs-version-selector field has-addons"><divclass="control"><spanclass="docs-label button is-static is-size-7">Version</span></div><divclass="docs-selector control is-expanded"><divclass="select is-fullwidth is-size-7"><selectid="documenter-version-selector"></select></div></div></div></nav><divclass="docs-main"><headerclass="docs-navbar"><navclass="breadcrumb"><ulclass="is-hidden-mobile"><liclass="is-active"><ahref>Home</a></li></ul><ulclass="is-hidden-tablet"><liclass="is-active"><ahref>Home</a></li></ul></nav><divclass="docs-right"><aclass="docs-edit-link"href="https://github.com/MillironX/cowsay.jl/blob/master/docs/src/index.md#"title="Edit on GitHub"><spanclass="docs-icon fab"></span><spanclass="docs-label is-hidden-touch">Edit on GitHub</span></a><aclass="docs-settings-button fas fa-cog"id="documenter-settings-button"href="#"title="Settings"></a><aclass="docs-sidebar-button fa fa-bars is-hidden-desktop"id="documenter-sidebar-button"href="#"></a></div></header><articleclass="content"id="documenter-page"><h1id="Cowsay.jl"><aclass="docs-heading-anchor"href="#Cowsay.jl">Cowsay.jl</a><aid="Cowsay.jl-1"></a><aclass="docs-heading-anchor-permalink"href="#Cowsay.jl"title="Permalink"></a></h1><p>A Julia package that lets you use <ahref="https://en.wikipedia.org/wiki/Cowsay">cowsay</a> in your Julia programs!</p><h2id="Usage"><aclass="docs-heading-anchor"href="#Usage">Usage</a><aid="Usage-1"></a><aclass="docs-heading-anchor-permalink"href="#Usage"title="Permalink"></a></h2><articleclass="docstring"><header><aclass="docstring-binding"id="Cowsay.cowsay"href="#Cowsay.cowsay"><code>Cowsay.cowsay</code></a> — <spanclass="docstring-category">Function</span></header><section><div><pre><codeclass="language-julia hljs">cowsay(message::AbstractString; kwargs...)
cowthink(message::AbstractString; kwargs...)</code></pre><p>Print an ASCII picture of a cow saying/thinking <code>message</code></p><p><strong>Arguments</strong></p><ul><li><code>message::AbstractString</code>: Tell the cow what to say</li></ul><p><strong>Keywords</strong></p><ul><li><code>cow=default</code>: Specify a particular function handle to print the ASCII art. See below for more details on what constitutes a valid function handle.</li><li><code>eyes::AbstractString="oo"</code>: A two-character string to be drawn in for the eyes. Not all cowfiles support this, though.</li><li><code>tongue::AbstractString=""</code>: A two-character string to be drawn in for the tongue. Not all cowfiles support this.</li></ul><p><strong>Example</strong></p><pre><codeclass="language-julia-repl hljs">julia> cowsay("Have you mooed today?")
_______________________
< Have you mooed today? >
-----------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
julia> cowthink("Have I mooed today?")
|| ||</code></pre></div><aclass="docs-sourcelink"target="_blank"href="https://github.com/MillironX/cowsay.jl/blob/aeaba5e27725c840d34ac9458091392bb4831f76/src/Cowsay.jl#L41-L80">source</a></section></article></article><navclass="docs-footer"><aclass="docs-footer-nextpage"href="cows/">Available Cowfiles »</a><divclass="flexbox-break"></div><pclass="footer-message">Powered by <ahref="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <ahref="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><divclass="modal"id="documenter-settings"><divclass="modal-background"></div><divclass="modal-card"><headerclass="modal-card-head"><pclass="modal-card-title">Settings</p><buttonclass="delete"></button></header><sectionclass="modal-card-body"><p><labelclass="label">Theme</label><divclass="select"><selectid="documenter-themepicker"><optionvalue="documenter-light">documenter-light</option><optionvalue="documenter-dark">documenter-dark</option></select></div></p><hr/><p>This document was generated with <ahref="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 0.27.10 on <spanclass="colophon-date"title="Tuesday 1 February 2022 22:12">Tuesday 1 February 2022</span>. Using Julia version 1.7.1.</p></section><footerclass="modal-card-foot"></footer></div></div></div></body></html>