Skip to content

Commit 7fa78a3

Browse files
committed
[css2] Added "more" to interactive listing.
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%40167
1 parent b27d26f commit 7fa78a3

4 files changed

Lines changed: 18 additions & 10 deletions

File tree

css2/bin/Attic/issues

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ HTML=`dirname $0`/../issues.srb
1818
DATEFRM="+%d %b %Y"
1919
TMP=${TMPDIR:-/tmp}/issue.$$
2020
ARCH=`uname`
21+
PAGER=${PAGER:-more}
22+
2123

2224
pr ()
2325
{
@@ -239,13 +241,13 @@ interactive ()
239241
pr "? \c"
240242
read reply
241243
case "$reply" in
242-
l) list_issues;;
244+
l) list_issues | $PAGER;;
243245
a) ref=; desc=; add_issue;;
244246
r) num=; res=; resolve_issue;;
245247
u) num=; update_issue;;
246248
g) generate_html;;
247-
t) list_unresolved;;
248-
y) list_to_be_updated;;
249+
t) list_unresolved | $PAGER ;;
250+
y) list_to_be_updated | $PAGER;;
249251
q) ;;
250252
*) pr "Not understood, please try again"; reply=;;
251253
esac

css2/bin/Attic/todo

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ ISSUES=`dirname $0`/../DOC/todo.db
2121
HTML=`dirname $0`/../DOC/todo.srb
2222
DATEFRM="+%d %b %Y"
2323
ARCH=`uname`
24+
PAGER=${PAGER:-more}
25+
2426

2527
pr ()
2628
{
@@ -377,14 +379,14 @@ interactive ()
377379
pr "? \c"
378380
read reply
379381
case "$reply" in
380-
l) list_issues;;
382+
l) list_issues | $PAGER;;
381383
a) ref=; desc=; add_issue;;
382384
c) num=; comment=; add_comment;;
383385
o) num=; own=; add_owner;;
384386
+) num=; inc_prio;;
385387
-) num=; dec_prio;;
386388
r) num=; res=; resolve_issue;;
387-
t) list_unresolved;;
389+
t) list_unresolved | $PAGER;;
388390
q) ;;
389391
*) pr "Not understood, please try again"; reply=;;
390392
esac

css2/bin/issues

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ HTML=`dirname $0`/../issues.srb
1818
DATEFRM="+%d %b %Y"
1919
TMP=${TMPDIR:-/tmp}/issue.$$
2020
ARCH=`uname`
21+
PAGER=${PAGER:-more}
22+
2123

2224
pr ()
2325
{
@@ -239,13 +241,13 @@ interactive ()
239241
pr "? \c"
240242
read reply
241243
case "$reply" in
242-
l) list_issues;;
244+
l) list_issues | $PAGER;;
243245
a) ref=; desc=; add_issue;;
244246
r) num=; res=; resolve_issue;;
245247
u) num=; update_issue;;
246248
g) generate_html;;
247-
t) list_unresolved;;
248-
y) list_to_be_updated;;
249+
t) list_unresolved | $PAGER ;;
250+
y) list_to_be_updated | $PAGER;;
249251
q) ;;
250252
*) pr "Not understood, please try again"; reply=;;
251253
esac

css2/bin/todo

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ ISSUES=`dirname $0`/../DOC/todo.db
2121
HTML=`dirname $0`/../DOC/todo.srb
2222
DATEFRM="+%d %b %Y"
2323
ARCH=`uname`
24+
PAGER=${PAGER:-more}
25+
2426

2527
pr ()
2628
{
@@ -377,14 +379,14 @@ interactive ()
377379
pr "? \c"
378380
read reply
379381
case "$reply" in
380-
l) list_issues;;
382+
l) list_issues | $PAGER;;
381383
a) ref=; desc=; add_issue;;
382384
c) num=; comment=; add_comment;;
383385
o) num=; own=; add_owner;;
384386
+) num=; inc_prio;;
385387
-) num=; dec_prio;;
386388
r) num=; res=; resolve_issue;;
387-
t) list_unresolved;;
389+
t) list_unresolved | $PAGER;;
388390
q) ;;
389391
*) pr "Not understood, please try again"; reply=;;
390392
esac

0 commit comments

Comments
 (0)