jwerle / rfc

IETF RFC reader tool
17 stars 3 forks source link

infer pager before invoking open function #15

Closed detj closed 2 years ago

detj commented 6 years ago

Modified the .open command to look for an available terminal pager before actually using that pager. Created a separate function to infer a suitable pager. PAGER environment variable is given highest priority if it exists.

Fixes #14

detj commented 6 years ago

@jwerle I have tried to make sure the edits follows existing project conventions as much as possible. If you do think any change is needed, please let me know. If a change is needed in formatting or style or a test is needed perhaps, let me know.