如何在终端(不是控制台)中使用“-l”选项无错误地运行 cmatrix?

7 fonts gnome-terminal screensaver console cmatrix

我已经cmatrix使用以下命令安装:

sudo apt-get install cmatrix 
Run Code Online (Sandbox Code Playgroud)

并在运行命令时:

cmatrix -l
Run Code Online (Sandbox Code Playgroud)

在控制台(ttys)中,我得到了一个非常酷的字体,带有类似符号的矩阵。但是当我使用该选项运行它时,gnome-terminal我只会得到以下输出:

Couldn't get a file descriptor referring to the console
Run Code Online (Sandbox Code Playgroud)

虽然它-l在没有in 的情况下工作gnome-terminal,但它没有给我特殊的字体,所以有没有办法运行它gnome-terminal并获得与-l在控制台中运行它的选项相同的字体?


操作系统信息:

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 15.10
Release:    15.10
Codename:   wily
Flavour: GNOME
GNOME Version: 3.18
Run Code Online (Sandbox Code Playgroud)

包装信息:

cmatrix:
  Installed: 1.2a-5build1
  Candidate: 1.2a-5build1
  Version table:
 *** 1.2a-5build1 0
        500 http://archive.ubuntu.com/ubuntu/ wily/universe amd64 Packages
        100 /var/lib/dpkg/status
Run Code Online (Sandbox Code Playgroud)

egm*_*ont 4

这是-l模式,引用手册页:

  -l    Linux mode (sets "matrix.fnt" font in console)
Run Code Online (Sandbox Code Playgroud)

它要求您在 Linux 控制台之一(Ctrl+ Alt+ F1... Ctrl+ Alt+F6切换到的控制台)上运行它。

在图形终端模拟器中,它无法更改终端的字体。您仍然可以在没有-l标志的情况下使用它。