Giter VIP home page Giter VIP logo

zsh-ansimotd's People

Contributors

op avatar yuhonas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

op bankrupcy

zsh-ansimotd's Issues

ANSI art is garbled because of wordwrap.

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.

tilde not expanding into HOME for ansi art config directory

From https://www.reddit.com/r/zsh/comments/12ueb6b/comment/jhbzhuf/?utm_source=share&utm_medium=web2x&context=3

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.

Suggestion: A command to delete the last motd that was loaded

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.