yuhonas / zsh-ansimotd Goto Github PK
View Code? Open in Web Editor NEWa zsh-plugin to display old skool ansi & ascii bbs art on logon
License: MIT License
a zsh-plugin to display old skool ansi & ascii bbs art on logon
License: MIT License
Wordwrap can cause the ansi art to be badly distorted. This is especially the case in small terminals like Termux.
On reddit, a user named romkatv came up with a solution. https://www.reddit.com/r/zsh/comments/12ueb6b/comment/jhmlgez/?utm_source=share&utm_medium=web2x&context=3
Disable wordwrap before printing the art and then reenable it after.
print -n '\e[?7l' # turn off automatic margins (a.k.a. line wrapping)
iconv -f 437 < $ansi_filename
print -n '\e[?7h' # restore automatic margins
I'd have submitted this as a PR, but I didn't write the original code.
I had some issues using your ansi_art_download command. I'm installing this on Termux by the way, if that matters. It downloaded all of the zip files, but it put them in
//.config/ansimotd/ instead of ~/.config/ansimotd/ Then when it tried to extract the files, it ran into problems. I got an error like this for each archive.checkdir: cannot create extraction directory: ~/.config/ansimotd/artscene.textfiles.com/artpacks/1996/spl9607 No such file or directory
Edit: whatever directory I start in, it creates a directory named ~ and acts like that's my home directory. Maybe using $HOME would be better.
I'd like to add this to awesome-zsh-plugins, but it doesn't have a license file.
Please add a license file - if you don't have one in mind, I recommend using choosealicense.com to help choose an appropriate one.
Thanks!
There is a typo at:
zsh-ansimotd/zsh-ansimotd.plugin.zsh
Line 17 in 273c250
Between level=
and 1
shouldn't be a blank character or the wget command doesn't work.
Otherwise, great stuff!
A lot of the ANSI art is great, but some of it is garbage. It would be nice if there were a command that could delete the last loaded MOTD so it won't show up anymore. Or maybe just export the selected MOTD to an environment variable so that people can choose what to do with it themselves like edit it or whatever.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.