Pagination for lp
- Dominant language
- Python
- Stars
- 1
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
```
What steps will reproduce the problem?
1. pipe = subprocess.os.popen('lp','w')
2. pipe.write(table.get_string())
3. pipe.close()
What is the expected output? What do you see instead?
Headers appear on first page only. It would be nice to be able to paginate for
some number of lines per pate
What version of the product are you using? On what operating system?
0.7.2
Please provide any additional information below.
Example of code attached. There may be a need to specify columns per page as
well.
```
Original issue reported on code.google.com by `brenvo...@gmail.com` on 21 Jul 2013 at 11:06
Attachments:
- [lpPrettyTable.py](https://storage.googleapis.com/google-code-attachments/prettytable/issue-32/comment-0/lpPrettyTable.py)
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the attached lpPrettyTable.py example and trace how table.get_string() is written to the lp subprocess. Define the pagination behavior for a configurable number of lines per page, including repeated headers, and consider the requested columns-per-page option. Done means printed output paginates correctly while preserving headers on each page.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100