ui:util:pager: document Nathan Weizenbaum as author of Ruby inspiration
authorW. Trevor King <wking@tremily.us>
Fri, 30 Nov 2012 01:07:07 +0000 (20:07 -0500)
committerW. Trevor King <wking@tremily.us>
Fri, 30 Nov 2012 01:07:07 +0000 (20:07 -0500)
Nathan's post is released under CC BY-SA 3.0 Unported.  According the
the FSF, the CC BY-SA 2.0 Generic was not compatible with BE's GPLv2+
[1].  I expect my Python implementation is sufficiently different from
Nathan's original notes to be classified as "fair use" and not an
"adaptation".

[1]: http://www.gnu.org/licenses/license-list.html#ccbysa

libbe/ui/util/pager.py

index 025d62e23e3a96f5e92b1c5b050344071ca5a3ea..20a583e2f40c472970370eec92b4e105477ca9c6 100644 (file)
@@ -22,7 +22,8 @@ Automatic pager for terminal output (a la Git).
 
 import sys, os, select
 
 
 import sys, os, select
 
-# see http://nex-3.com/posts/73-git-style-automatic-paging-in-ruby
+# Inspired by Nathan Weizenbaum's
+#   http://nex-3.com/posts/73-git-style-automatic-paging-in-ruby
 def run_pager(paginate='auto'):
     """
     paginate should be one of 'never', 'auto', or 'always'.
 def run_pager(paginate='auto'):
     """
     paginate should be one of 'never', 'auto', or 'always'.