跳转至内容

ASCII 艺术

来自 ArchWiki
(重定向自 Artwork)


软件

  • arttime — 为终端带来精选的 ASCII/ANSI/UTF-8 艺术、翻页动画和动画分镜脚本。它也是一个功能齐全的时钟、定时器和时间管理器。现在你可以一边看着漂亮的文本艺术一边进行乏味的时间管理。
https://github.com/poetaman/arttime || arttime-gitAUR
  • ASCII Draw — 一个仅使用 ASCII 绘制图表或任何内容的应用程序。
https://github.com/Nokse22/ascii-draw || ascii-drawAUR
  • Asciiquarium — ASCII 艺术形式的水族馆/海洋动画。
https://robobunny.com/projects/asciiquarium/ || asciiquarium
  • ascii-rain — 用 C 语言和 Ncurses 编写的舒适控制台雨景。
https://github.com/nkleemann/ascii-rain || ascii-rain-gitAUR
  • Banner — 在 ASCII 终端打印大型横幅。
https://shh.thathost.com/pub-unix/ || banner
  • bash-pipes — 动画管道终端屏幕保护程序。
https://github.com/pipeseroni/pipes.sh || bash-pipesAUR
  • boxes — 文本模式的方框和注释绘制过滤器。
https://boxes.thomasjensen.com/ || boxesAUR
  • catimg — 在支持 256 色的终端中打印图像。
https://github.com/posva/catimg || catimg
  • cbonsai — 盆栽生成器,使用 C 和 ncurses 编写。
https://gitlab.com/jallbrit/cbonsai || cbonsaiAUR
  • cmatrix — 基于电影《黑客帝国》(The Matrix) 文本的终端动画。
https://github.com/abishekvashok/cmatrix || cmatrix
  • DurDraw — 终端 ANSI、ASCII 和 Unicode 艺术编辑器,支持动画、256 色和鼠标。
https://github.com/cmang/durdraw || durdrawAUR
  • emacs — Artist-mode 是 GNU Emacs 内置的一个包,允许你使用 Emacs 文本编辑器创建简单的图画和图表。
https://www.emacswiki.org/emacs/ArtistMode || emacs
  • FIGlet — 一个用普通文本制作大型字母的程序。
http://www.figlet.org/ || figlet
  • jp2a — 一个将 JPG、PNG 和 WebP 图像转换为 ASCII 的小型工具。
https://github.com/Talinx/jp2a || jp2a
  • Letterpress — 将图像转换为 ASCII 字符画的 GUI 应用程序。它使用 jp2a 作为后端。
https://gitlab.gnome.org/World/Letterpress || letterpress
  • mkinitcpio-archlogo — 在早期引导过程中添加彩色的 Arch Linux ASCII 艺术标志。
https://github.com/eworm-de/mkinitcpio-archlogo || mkinitcpio-archlogoAUR
  • neo-matrix — 模拟来自《黑客帝国》的数字雨。
https://github.com/st3w/neo || neo-matrixAUR
  • nyancat — 在终端中渲染彩虹猫 (nyancat)。
https://nyancat.dakko.us/ || nyancat
  • sl — 当你误将 ls 输入为 sl 时,一辆蒸汽机车 (steam locomotive) 会驶过你的终端。
https://github.com/eyJhb/sl || sl
  • TOIlet — FIGlet 工具的免费替代品。
http://caca.zoy.org/wiki/toilet || toilet
  • tty-clock — 使用 ncurses 编写的数字时钟。
https://github.com/xorg62/tty-clock || tty-clockAUR
  • tulizu — 一个带有数据库的工具,用于切换和自定义 /etc/issue 文件中包含的 ASCII 艺术。
https://loh-tar.github.io/tulizu/ || tulizuAUR

绘制图表可以使用 https://asciiflow.com/

Arch ASCII 标志

请参阅 原始论坛帖子

 \e[H\e[2J
           \e[0;36m.
          \e[0;36m/ \
         \e[0;36m/   \      \e[1;37m               #     \e[1;36m| *
        \e[0;36m/^.   \     \e[1;37m a##e #%" a#"e 6##%  \e[1;36m| | |-^-. |   | \ /
       \e[0;36m/  .-.  \    \e[1;37m.oOo# #   #    #  #  \e[1;36m| | |   | |   |  X
      \e[0;36m/  (   ) _\   \e[1;37m%OoO# #   %#e" #  #  \e[1;36m| | |   | ^._.| / \ \e[0;37mTM
     \e[1;36m/ _.~   ~._^\
    \e[1;36m/.^         ^.\ \e[0;37mTM
 \e[H\e[2J
           \e[1;36m.
          \e[1;36m/#\
         \e[1;36m/###\      \e[1;37m               #     \e[1;36m| *
        \e[1;36m/p^###\     \e[1;37m a##e #%" a#"e 6##%  \e[1;36m| | |-^-. |   | \ /
       \e[1;36m/##P^q##\    \e[1;37m.oOo# #   #    #  #  \e[1;36m| | |   | |   |  X
      \e[1;36m/##(   )##\   \e[1;37m%OoO# #   %#e" #  #  \e[1;36m| | |   | ^._.| / \ \e[0;37mTM
     \e[1;36m/###P   q#,^\
    \e[1;36m/P^         ^q\ \e[0;37mTM

来自 screenfetch 3.6.5-1

                   -`
                  .o+`
                 `ooo/
                `+oooo:
               `+oooooo:
               -+oooooo+:
             `/:-:++oooo+:
            `/++++/+++++++:
           `/++++++++++++++:
          `/+++ooooooooooooo/`
         ./ooosssso++osssssso+`
        .oossssso-````/ossssss+`
       -osssssso.      :ssssssso.
      :osssssss/        osssso+++.
     /ossssssss/        +ssssooo/-
   `/ossssso+/:-        -:/+osssso+-
  `+sso+:-`                 `.-/+oso:
 `++:.                           `-/+/
 .`                                 `

来自 alsiAUR 0.4.7-1

                  ##
                 ####
                ######
               ########
              ##########
             ############
            ##############
           ################
          ##################
         ####################
        ######################
       #########      #########
      ##########      ##########
     ###########      ###########
    ##########          ##########
   #######                  #######
  ####                          ####
 ###                              ###

来自 archey3AUR

               +              
               #              
              ###             
             #####            
             ######           
            ; #####;          
           +##.#####          
          +##########         
         #############;       
        ###############+      
       #######   #######      
     .######;     ;###;`".      
    .#######;     ;#####.       
    #########.   .########`     
   ######'           '######    
  ;####                 ####;   
  ##'                     '##   
 #'                         `#

ArchWiki 生日庆典

                                               ,- " " " -.
                                              /     _     \
                                             :     / |     ;     ,- " " "-.
                                             \     | |     /    /   ____   \
                                              \    |_|    /    ;    |  |    ;
                                                `.. ,, ..´     \    |__|    /
                                                  /✿\           \          /
                                                    )             `. ,, .´
     _             _  __        ___ _    _         (                /✿\
    / \   _ __ ___| |_\ \      / (_) | _(_)         )                (
   / _ \ | '__/ __| '_ \ \ /\ / /| | |/ / |        (                  )
  / ___ \| | | (__| | | \ V  V / | |   <| | ....... ) .*..---...*.....*
 /_/   \_\_|  \___|_| |_|\_/\_/  |_|_|\_\_| ....♫♪հձթթყ ъﻨгէհժձყ eժﻨէﻨon ♫

用户艺术

                    -@                
                   .##@               
                  .####@              
                  @#####@             
                . *######@            
               .##@o@#####@           
              /############@          
             /##############@         
            @######@**%######@        
           @######`     %#####o       
          @######@       ######%      
        -@#######h       ######@.`    
       /#####h**``       `**%@####@   
      @H@*`                    `*%#@  
     *`                            `* 

作者:Cyllos

\033[38;2;23;147;209m                   ▄
                  ▟█▙
                 ▟███▙
                ▟█████▙
               ▟███████▙
              ▂▔▀▜██████▙
             ▟██▅▂▝▜█████▙
            ▟█████████████▙
           ▟███████████████▙
          ▟█████████████████▙
         ▟███████████████████▙
        ▟█████████▛▀▀▜████████▙
       ▟████████▛      ▜███████▙
      ▟█████████        ████████▙
     ▟██████████        █████▆▅▄▃▂
    ▟██████████▛        ▜█████████▙
   ▟██████▀▀▀              ▀▀██████▙
  ▟███▀▘                       ▝▀███▙
 ▟▛▀                               ▀▜▙

作者:LnLcFlx

Code page 437 保存(例如用于 /etc/issue

\e[34m                  ▄
                 ▄█▄
                ▄███▄
               ▄█████▄
              ▄███████▄
             ▄ ▀▀██████▄
            ▄██▄▄ ▀█████▄
           ▄█████████████▄
          ▄███████████████▄
         ▄█████████████████▄
        ▄███████████████████▄
       ▄█████████▀▀▀▀████████▄
      ▄████████▀      ▀███████▄
     ▄█████████        ████▀▀██▄
    ▄██████████        █████▄▄▄
   ▄██████████▀        ▀█████████▄
  ▄██████▀▀▀              ▀▀██████▄
 ▄███▀▀                       ▀▀███▄
▄▀▀                               ▀▀▄\e[0m

作者:Hendrikto(基于 LnLcFlx 的版本修改)

\e[38;5;33m
                    .
                   / \
                  /   \
                 /     \
                /.      \
               ,_ `.     \
              /   ``-     .
             /             `
            /               `.
          .`      ."`".       \
         .       '     \       \
        /        \      ;     -.\
       /        .'     /._     `".
      /   .-"`             `"-.   `.
    .`.-`                       `-._\
    `                               `
\e[0m

作者:cmang

            /\
           /  \
          /    \
         _\     \
        /        \
       /          \
      /     __   \_\
     /     /  \     \
    /__,--'    '--,__\

作者:abdrsk

Cowsay

这里有一些 cowsayfortune 结合使用的例子

配合 fortune 的默认奶牛

$ cowthink $(fortune)
 ________________________________________ 
( The best cure for insomnia is to get a )
( lot of sleep. -W.C. Fields             )
 ---------------------------------------- 
        o   ^__^
         o  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

ASCII 图像由位于 /usr/share/cows.cow 文本文件生成,可以使用 cowsay -l 列出所有主题。这些文件可以根据用户的喜好进行编辑;也可以从头创建自定义图像或在网上寻找。创建自定义奶牛文件最简单的方法是使用现有文件作为模板。测试自定义文件:

$ cowsay -f /path/to/file $(fortune)

配合 fortune 的随机奶牛

$ fortune -c | cowthink -f $(find /usr/share/cowsay -type f | shuf -n 1)
  ___________________________________________
( (computers) % A language that doesn't )
( affect the way you think about                  )
( programming is not worth knowing.       )
  ------------------------------------------------------
         o      (__)
          o     /oo|
           o   (_"_)*+++++++++*
                    //I#\ \ \ \ \ \ \ \   I \
                   I[I|I | | | | |   I I `
                   I`I ' /  /  /  '  '     I I
                   I I                       I I
                  ~ ~                     ~ ~
                        Scowleton

配合 fortune 的随机自定义奶牛

可以链式运行复杂命令来生成详细的 ASCII 艺术,例如这个 飞出个未来 (Futurama) 的例子

  • 显示一只带有随机面部表情的随机奶牛,并对过长的 fortune 文本进行换行
注意: 随机选择的奶牛实际上是从带有自定义 ASCII 艺术的数据库中选择的一只蟾蜍
$ fortune -a | fmt -80 -s | $(shuf -n 1 -e cowsay cowthink) -$(shuf -n 1 -e b d g p s t w y) -f $(shuf -n 1 -e $(cowsay -l | tail -n +2)) -n
    ________________________________________ 
( Fry: I must be a robot. Why else would )
( human women refuse to date me?         )
    -------------------------------------------------- 
      o
        o
          o  
             ,'``.._   ,'``.
            :,--._:)\,:,._,.:
            :`--,''@@@:`...';\        
             `,'@@@@@@@`---'@@`.     
             /@@@@@@@@@@@@@@@@@:
            /@@@@@@@@@@@@@@@@@@@\
          ,'@@@@@@@@@@@@@@@@@@@@@:\.___,-.
         `...,---'``````-..._@@@@|:@@@@@@@\
           (                 )@@@;:@@@@)@@@\  _,-.
            `.              (@@@//@@@@@@@@@@`'@@@@\
             :               `.//@@)@@@@@@)@@@@@,@;
             |`.            _,'/@@@@@@@)@@@@)@,'@,'
             :`.`-..____..=:.-':@@@@@.@@@@@_,@@,'
            ,'\ ``--....-)='    `._,@@\    )@@@'``._
           /@_@`.       (@)      /@@@@@)  ; / \ \`-.'
          (@@@`-:`.     `' ___..'@@_,-'   |/   `.)
           `-. `.`.``-----``--,@@.'
             |/`.\`'        ,',');
                 `         (/  (/

Ponysay

对于全 256 色的类 cowsay 艺术,请使用 ponysay(3.0 版本有 422 只小马)。语法是相同的,即 ponysay message 来让它说话,ponysay -l 查看完整小马列表。要选择显示某只小马,运行 ponysay --pony x "message",其中 x 是一只小马。要创建更多小马,请使用 util-say-gitAUR,并将它们分别存储在桌面环境使用的 ~/.local/share/ponysay/ponies 和 TTY 使用的 ~/.local/share/ponysay/ttyponies/ 中。

参见