|Robert Labudda 797b87b954||9 months ago|
|README.md||9 months ago|
|slide.py||9 months ago|
With slide.py you can present plain text files in your terminal.
Presentations are really just plain text files. You can have as many slides as
you want per file — from 0 to many and then show them by passing them as
slide.py cover.txt main-part.txt end.txt
You have seen slide.sh and are
wondering why there even was the need to create slide.py? There wasn’t.
Except I wanted all slides to be centered in the terminal, given the biggest slide in the deck.
And some more keys.
A presentation is just a text file and it will be displayed as is with five exceptions:
!!pausewill hold the presentation until you press a key
!!centerwill center every line after this one
!!nocenterwill stop centering every line after this one
--- SLIDE ---signifies the start of a new slide
.will be left empty
So, this is a valid presentation:
!!center A PRESENTATION !!nocenter !!pause using slide.py --- SLIDE --- You are using slide.py. Good for you. --- SLIDE --- Have a nice day!
Here’s another presentation:
A single slide, single line presentation.
Empty lines at the start and at the end of every slide will be thrown away. If
you want to start the slide with empty lines, use
. . . A four-line slide
You can navigate the slides using these keys:
Esc: end the presentation
Space: go to the next slide
PgUp: go to the previous slide
Home: go to the first slide
In case you are using a GUI your terminal font might be too small for a good, readable presentation.
slide.py -a with your presentation. It will show a rectangle in
the size of the biggest slide, so you can resize your terminal’s font until
you get the size you want.
Once you’re done with the adjustment, press
Escape to quit
the adjustment screen and start the presentation.