Skip to content

fokot/howerpoint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Howerpoint - forget about Powerpoint!!

  • ghci terminal-based slide-show presentations that you can control from the REPL and execute code on slides
  • idea (no code) stolen from REPLesent

It's only a single Haskell file!

asciicast

To run presentation create presentation as a text file. Run stack ghci and have in the in the root of the project

$ stack ghci
Howerpoint> :loadPresentation PATH-TO-PRESENTATION

Good stating poitn is test presentations

$ stack ghci
Howerpoint> :loadTestPresentation

Navigation commands

Command Description
:loadTestPresentation Load test presentation
:loadPresentation <PATH-TO-YOUR-PRESENTATION> Load your presentation
help Help
n Go to next slide
p Go to previous slide
nn i Advance i slides
pp i Go back i slides
g i Go to slide i
:rr Run code from slide
:rrr Run code from current and all previous slides
resetSize Set the slide size to current terminal size
setSize x y Set the slide size to x y
showSize Show current slide size

ANSI colors

Escape code Result
\x Foreground color, where x is one of: black, red, green, yellow, blue, magenta, cyan, white
\X Background color, where capital X is one of the same as above
\0 Resets foreground and background colors to terminal default

Code

All code is run in ghci so don't forget lets and :m + as imports etc.

>>> show code on a slide and also the same code will be run

>>>putStrLn . show $ double 5

L>> show code on a slide and when the code is run it prepends let

L>>double x = x + x

H>> doesn't show code on a slide but the code is run. It's useful for imports

H>>:m +Data.Char

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published