]> code.citadel.org Git - citadel.git/commitdiff
* utilsmenu: obey $PAGER environment var, if any. Default to more if neither
authorMichael Hampton <io_error@uncensored.citadel.org>
Wed, 11 Oct 2000 23:03:44 +0000 (23:03 +0000)
committerMichael Hampton <io_error@uncensored.citadel.org>
Wed, 11 Oct 2000 23:03:44 +0000 (23:03 +0000)
  $PAGER nor less is available.

citadel/ChangeLog
citadel/utilsmenu

index 395a84617579a17da977cae38f0f82d7a5cfe264..16090e6da21f973c374c7faf144499968da6d925 100644 (file)
@@ -1,4 +1,8 @@
  $Log$
+ Revision 573.13  2000/10/11 23:03:44  error
+ * utilsmenu: obey $PAGER environment var, if any.  Default to more if neither
+   $PAGER nor less is available.
+
  Revision 573.12  2000/10/11 22:55:25  error
  * citadel.c: when ansi_color=user, enable color at login, so Lobby> posts
    displayed at login are in color
@@ -2093,3 +2097,4 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant <bryant@cs.usm.maine.edu>
 
 Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
        * Initial CVS import 
+        
index 6f3f3cc86cb7981b31c1c11b93ceb97fb00ada25..06bd24dbce582bf3a61f78e6304aa0f8bb1833c6 100755 (executable)
@@ -4,7 +4,15 @@
 # version 1.1 - July 1999
 # see copyright.txt for copyright information
 
-MORECMD=less
+if test -n "$PAGER"
+then
+       MORECMD=$PAGER
+elif test -n "$LESSOPEN"
+then
+       MORECMD=less
+else
+       MORECMD=more
+fi
 
 while true
 do