summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--parttypes.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/parttypes.cc b/parttypes.cc
index 1b32569..38b9193 100644
--- a/parttypes.cc
+++ b/parttypes.cc
@@ -525,8 +525,10 @@ void PartType::ShowAllTypes(int maxLines) const {
if (thisType->next) {
cout << "\n";
if ((maxLines > 0) && (lineCount++ % maxLines) == 0) {
- cout << "Press the <Enter> key to see more codes: ";
+ cout << "Press the <Enter> key to see more codes, q to quit: ";
getline(cin, line);
+ if ((line[0] =='q') || (line[0] =='Q'))
+ break;
} // if reached screen line limit
} // if there's another entry following this one
} else {