Skip to content
This repository has been archived by the owner on Oct 10, 2020. It is now read-only.

Alives/nyancat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nyancat Character Device

Nyancat rendered locally as a character device.

Nyancat

Build

You will need to install the needed tools and libraries to build. First build the module (these 2 dependencies are needed on ubuntu/debian):

sudo apt-get install linux-headers-$(uname -r) build-essential

Compile the module:

make

Copy the udev rule to the correct place (this creates the device node for you upon module insertion):

sudo cp etc/udev/rules.d/10-nyancat.rules /etc/udev/rules.d/10-nyancat.rules

Insert the compiled module:

sudo insmod nyancat_cdev_module.ko

Use

cat the character device:

cat /dev/nyancat

Configuration

Use cat and echo to view and modify the 2 parameterst that control the output (90 ms and xterm are the defaults):

> cat /proc/nyancat/delay_in_ms
90
> cat /proc/nyancat/term_type
xterm
> echo 250 > /proc/nyancat/delay_in_ms
> echo vt220 > /proc/nyancat/term_type

Acceptable values for term_type are: xterm, linux, vt220, fallback, rxvt, and default.

Licenses, References, etc.

The original source of the Nyancat animation is prguitarman.

The code provided here is provided under the terms of the Apache 2.0 License.

About

Nyancat character device

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages