命令行或TUI的ASCII屏幕保护程序?

这个问题因为过于宽泛而被关闭,所以我在这里会更具体地谈论ASCII动画=)

是否有任何可以用作屏幕保护程序的ASCII动画 - 无论是在TUI还是在命令行中?


2世界上什么是TUI? - guntbert
3@guntbert 文本用户界面 =) - TellMeWhy
例如,命令行... - TellMeWhy
1为什么不像其他人一样称之为CLI呢? - guntbert
@guntbert 文本用户界面也是在使用组合键Ctrl+Alt+F1+F2+F3等时所得到的。 - TellMeWhy
1嗯,那只是一个CLI而已 - 但我后来发现像ncurses这样的界面被称为TUI,这很合理,因为我们在那里没有命令行,但它们是基于文本的(例如,参见nm-tui)。 - guntbert
我一直在寻找的是一个可以作为root安装的东西,以防止未被监视的终端被留下(仅限无图形界面、Linux、Bash提示符)。即使用户使用putty登录,我也希望能够强制启用屏幕保护程序(ASCII),然后强制用户提供密码来解锁屏幕。我开始自己写一个,然后意识到可能已经存在了。很可能确实存在。有人知道吗?(这些机器上没有安装图形界面),其中一些正在运行CentOS、RedHat和Debian。 - PyTis
7个回答

cmatrix是另一个很棒的选择!使用以下命令进行安装
sudo apt-get install cmatrix

这是关于它的“manpage”描述:
CMatrix(1)                                                    General Commands Manual                                                   CMatrix(1)

NAME
       CMatrix - simulates the display from "The Matrix"

SYNOPSIS
       cmatrix [-abBflohnsVx] [-u update] [-C color]

DESCRIPTION
       Shows a scrolling 'Matrix' like screen in Linux

   OPTIONS
       -a     Asynchronous scroll

       -b     Bold characters on

       -B     All bold characters (overrides -b)

       -f     Force the linux $TERM type to be on

       -l     Linux mode (sets "matrix.fnt" font in console)

       -o     Use old-style scrolling

       -h, -? Print usage and exit

       -n     No bold characters (overrides -b and -B)

       -s     "Screensaver" mode, exits on first keystroke

       -x     X window mode, use if your xterm is using mtx.pcf

       -V     Print version information and exit

       -u delay
              Screen update delay 0 - 9, default 4

       -C color
              Use this color for matrix (default green).  Valid colors are green, red, blue, white, yellow, cyan, magenta and black.

   KEYSTROKES
       The following keystrokes are available during execution (unavailable in -s mode)

       a      Toggle asynchronous scroll

       b      Random bold characters

       B      All bold characters

       n      Turn off bold characters

       0-9    Adjust update speed

       ! @ # $ % ^ & )
              Change  the  color  of  the  matrix to the corresponding color: ! - red, @ - green, # - yellow, $ - blue, % - magenta, ^ - cyan, & -
              white, ) - black.

       q      Quit the program

BUGS
       This program is very CPU intensive.  Don't be surprised if it eats up over 40% of your CPU at times.

HOMEPAGE
       The CMatrix homepage is currently at http://www.asty.org/cmatrix.

AUTHORS
       Chris Allegretta (chrisa@asty.org), with a lot of help from many other people. See README file for details.

                                                                  Mon May 3 1999                                                        CMatrix(1)

例子:

正常运行的终端:

cmatrix -s -b

enter image description here

控制台:

cmatrix -s -b -l

enter image description here


请注意:尽管这里的图片没有显示动画效果,但它是有动画的。
如果您希望它像一个正常的屏幕保护程序一样工作(尽管-l选项不起作用),请查看这个答案

不确定如何根据! @ # $ % ^ & )来改变颜色,当我使用shift + 数字来获取所需的字符(例如:Shift + 4获取$)并期望新的颜色时 - 只会改变动画的速度,那么如何插入/激活! @ # $ % ^ & ) - Manuel Jordan

Pipes.sh

经典的ASCII屏保。

enter image description here

用法:

wget https://raw.githubusercontent.com/pipeseroni/pipes.sh/master/pipes.sh 
chmod +x pipes.sh
./pipes.sh

安装:

git clone https://github.com/pipeseroni/pipes.sh.git
cd pipes.sh
sudo make install

选项:

 -t #

管道类型。请参考文档以查看所有类型。

-f [20-100]

帧率。
-s [5-15]

直线拟合的概率。
-r LIMIT

重置在x个字符后,如果没有限制则为0。
-R

随机起点。
-B

没有加粗效果。
-C

没有颜色。

请参考文档获取更多信息。


1最好的一个 =) - TellMeWhy

Termsaver

Termsaver是一个基于文本的屏幕保护程序,内嵌了各种动画效果:

 urlfetcher     displays url contents with typing animation
 starwars       runs the asciimation Star Wars movie
 matrix         displays a matrix movie alike screensaver
 jokes4all      displays recent jokes from jokes4all.net (NSFW)
 clock          displays a digital clock on screen
 programmer     displays source code in typing animation
 quotes4all     displays recent quotes from quotes4all.net
 rssfeed        displays rss feed information
 rfc            randomly displays RFC contents
 sysmon         displays a graphical system monitor
 randtxt        displays word in random places on screen
 asciiartfarts  displays ascii images from asciiartfarts.com (NSFW)

(来自man termsaver


安装:
 sudo apt-get install termsaver

使用方法:

 termsaver matrix

enter image description here

enter image description here

enter image description here


这个ASCII动画可以用作屏幕保护程序:
活体水族馆

enter image description here

你可以在这里找到安装的方法。
安装的第一部分将处理标准Perl安装中未包含的任何剩余依赖项。按照以下步骤进行安装:
1. 打开一个终端窗口。如果您使用的是无图形界面的服务器,则只需登录。 2. 使用命令`cd /tmp`切换至`/tmp`目录。 3. 使用命令`wget http://search.cpan.org/CPAN/authors/id/K/KB/KBAUCOM/Term-Animation-2.4.tar.gz`下载Terminal Animation软件包。 4. 使用命令`tar -zxvf Term-Animation-2.4.tar.gz`解压Terminal Animation软件包。 5. 使用命令`cd Term-Animation-2.4/`切换至新创建的目录。 6. 使用命令`perl Makefile.PL && make && make test`构建makefile。 7. 使用命令`sudo make install`编译安装Terminal Animation。
现在可以安装asciiquarium应用程序了。请按照以下步骤操作:
1. 打开一个终端窗口(同样,如果您使用的是无图形界面的服务器,则只需登录)。 2. 使用命令`cd /tmp`切换至`/tmp`目录。 3. 使用命令`wget http://www.robobunny.com/projects/asciiquarium/asciiquarium.tar.gz`下载所需的软件包。 4. 使用命令`tar -zxvf asciiquarium.tar.gz`解压asciiquarium软件包。 5. 使用命令`cd asciiquarium`切换至新创建的目录。 6. 使用命令`sudo cp asciiquarium /usr/local/bin`将可执行文件复制到必要的目录。 7. 使用命令`sudo chmod 0755 /usr/loca/bin/asciiquarium`为可执行文件设置正确的权限。
现在是时候测试asciiquarium了。打开终端窗口(或者如果使用无图形界面的机器,则登录),并输入命令`/usr/local/bin/asciiquarium`。

在我的情况下,我不得不cpan Curses - Sterling Butters

来源

sudo apt-get install bsdgames
worms -d 190 -n 4

enter image description here

rain -d 180

enter image description here


ASCII Saver – 终端屏保。这是我在终端没有输入/输出时运行一些动画的尝试。输入图像描述


在Emacs中,zone-mode可以用作屏幕保护程序。如果你担心模式行会烧进你的屏幕,那么你就不是一个真正的Emacs用户!