This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
标题: need console/pager module
类型: enhancement Stage: resolved
Components: Library (Lib) Versions: Python 3.3, Python 2.7
process
状态: closed Resolution: rejected
Dependencies: 后续:
分配给: 抄送列表: benjamin.peterson, eric.araujo, ezio.melotti, r.david.murray, techtonik
优先级: normal 关键字:

Created on 2010-04-15 08:01 by techtonik, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (5)
msg103187 - (view) Author: anatoly techtonik (techtonik) 日期: 2010-04-15 08:01
Many many Python tools have duplicating code related to getting console properties like width and height to provide pagination and cute progress bars. While the issue seems minor, making such features work crossplatform way requires many tuits. That's why it is highly desirable to have console module inside Python stdlib.
msg103190 - (view) Author: anatoly techtonik (techtonik) 日期: 2010-04-15 10:45
How to get console width:

http://stackoverflow.com/questions/566746/how-to-get-console-window-width-in-python
http://code.activestate.com/recipes/440694-determine-size-of-console-window-on-windows/

PDCurses may contain some public domain code:
http://pdcurses.sourceforge.net/
BSD like licensed Console module from Fredrik Lundh:
http://effbot.org/zone/console-handbook.htm
msg103252 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) 日期: 2010-04-15 20:36
Please propose on python-ideas before making a bug.
msg103297 - (view) Author: anatoly techtonik (techtonik) 日期: 2010-04-16 06:52
It is not a bug, but a "feature request".
msg103319 - (view) Author: R. David Murray (r.david.murray) * (Python committer) 日期: 2010-04-16 12:50
Benjamin was using the term 'bug' as a synonym for 'issue in the tracker'.  The point is that a feature like this (a whole new module) is not an appropriate tracker item.  In most cases the procedure for getting a new module included in the stdlib is distinctly non-trivial and generally requires, among other things, that the module get proven by distribution via PyPI first.
历史
日期 用户 动作 参数
2022-04-11 14:56:59admin修改github: 52655
2010-04-16 12:50:47r.david.murray修改抄送: + r.david.murray
消息: + msg103319
2010-04-16 07:06:28ezio.melotti修改抄送: + ezio.melotti

stage: resolved
2010-04-16 06:52:46techtonik修改消息: + msg103297
2010-04-15 21:24:17eric.araujo修改抄送: + eric.araujo
2010-04-15 20:36:54benjamin.peterson修改状态: open -> closed

抄送: + benjamin.peterson
消息: + msg103252

resolution: rejected
2010-04-15 10:45:48techtonik修改消息: + msg103190
2010-04-15 08:01:46techtonik创建