Created
March 12, 2013 05:50
-
-
Save dmcclory/5140631 to your computer and use it in GitHub Desktop.
essence of what man does
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def troff_stuff | |
| Zlib::GzipReader.open(@file) do |troff| | |
| troff.read | |
| end | |
| end | |
| def exec_groff_less | |
| IO.popen("groff -Wall -pt -mandoc -Tascii | less -J", 'w') do |io| | |
| io.write troff_stuff | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment