Skip to content

longemen3000/BetterBanner.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BetterBanner.jl

Motivation

This package was done to solve two issues with the start banner (Base.banner()):

  1. from 1.6 onwards, there is a new show method for sparse matrices, that uses braille unicode to draw the sparsity pattern. despite of that, the julia start banner still uses ascii, and there are striking differences between the official logo and the logo recreated.

  2. The current banner overflows easily. I have a terrible programming enviroment (by choice) where i choose to have a long, narrow terminal screen, and the display quality of the banner suffers each time. The fact that i saw some julia users on mobile phones (!!) with the same problem, pushed me over the edge to do this.

Lets see the current situation:

original banner, with enouth space

Seems right, but sometimes, i really want to start julia on a narrow terminal:

original banner, with not enouth space

The Solution

Enter BetterBanner.jl.

The package replaces the current banner art with one done with braille unicode:

new banner, with space

It comes with some text overflow protection:

new banner, overflow

new banner, more overflow

new banner, too much overflow

new banner, insane overflow

As with the original Base.banner function, there is also a --color=no mode:

new banner, no color

Usage

Add this package:

pkg>add https://github.com/longemen3000/BetterBanner.jl

and add this line to your .julia//config//startup.jl file (if the file or directory is not there, create it first):

#startup.jl
import BetterBanner

And that's it. If you are concerned about performance, you can test it by:

#startup.jl
@time import BetterBanner

On my laptop, the loading time (julia 1.6.2) is the following:

C:\Users\longemen3000\.julia\dev>julia
  0.010768 seconds (9.41 k allocations: 790.844 KiB, 55.18% compilation time)

About

trying to improve the julia banner

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages