X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=README.md;h=f88c02fed1ad1ac3e2c6799e1f59000375bf0c47;hb=8689da8fc361118b05e33f3d19b269e9463040d0;hp=8097bf44b9bd3a6452c8d72d9f9a2b9526af3de8;hpb=33ab256fba6f2bab2d347b295ac9c12258254534;p=smdp.git diff --git a/README.md b/README.md index 8097bf4..f88c02f 100644 --- a/README.md +++ b/README.md @@ -5,13 +5,14 @@ --- -*How to get started:* +***How to get started:*** -mpd needs the ncurses headers to compile. +mdp needs the ncursesw headers to compile. So make sure you have them installed: -- On Ubuntu you need ```libncurses5``` and ```libncurses5-dev``` to be installed. +- on Ubuntu/Debian you need `libncursesw5` and `libncursesw5-dev` +- on Cygwin you need `libncursesw10` and `libncurses-devel` -Now download and install mpd: +Now download and install mdp: $ git clone https://github.com/visit1985/mdp.git $ cd mdp @@ -20,39 +21,59 @@ Now download and install mpd: $ mdp sample.md - On Arch you can use the existing [AUR package](https://aur.archlinux.org/packages/mdp-git/). +- On Slackware, grab the SlackBuild here: (http://slackbuilds.org/apps/mdp/), or run `sbopkg -i mdp` +- On FreeBSD, you can use the port [misc/mdp](http://www.freshports.org/misc/mdp). + +Most terminals support 256 colors only if the TERM variable is +set correctly. To enjoy mdp's color fading feature: + + $ export TERM=xterm-256color --- -*How to use it:* +***How to use it:*** -_Horizontal rulers are used as slide separator._ +Horizontal rulers are used as slide separator. -_Supports basic markdown formating:_ +Supports basic markdown formating: -- line wide formating +- line wide markup - headlines - code - quotes + - unordered list -- in-line formating +- in-line markup - bold text - underlined text + - code -_Supports headers prefixed by @ symbol._ +Supports headers prefixed by @ symbol. - first two header lines are displayed as title and author - in top and bottom bar + in top and bottom bar -_Review sample.md for more details._ +Review sample.md for more details. --- -*Controls:* +***Controls:*** -- h, j, k, l, Cursor keys, - Space, Enter, Backspace - next/previous slide +- h, j, k, l, Arrow keys, + Space, Enter, Backspace, + Page Up, Page Down - next/previous slide - Home - go to first slide - End - go to last slide - 1-9 - go to slide n +- r - reload input file - q - exit + +--- + +***How to debug it:*** + +To make a debug version of `mdp`, just type: + + $ make DEBUG=1 +