Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #53337 > unrolled thread
| Started by | Timo Schmiade <timo.schmiade@gmx.de> |
|---|---|
| First post | 2013-08-31 10:31 +0200 |
| Last post | 2013-08-31 10:31 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Reading from stdin first, then use curses Timo Schmiade <timo.schmiade@gmx.de> - 2013-08-31 10:31 +0200
| From | Timo Schmiade <timo.schmiade@gmx.de> |
|---|---|
| Date | 2013-08-31 10:31 +0200 |
| Subject | Re: Reading from stdin first, then use curses |
| Message-ID | <mailman.404.1377937872.19984.python-list@python.org> |
Hi again, sorry for replying to my own mail, but is there really no solution? Can curses really not be used in this situation? Thanks again, Timo On Sun, Aug 11, 2013 at 02:05:11PM +0200, Timo Schmiade wrote: > Hi all, > > I wrote a replacement for urlview to properly extract URLs from emails. > You can find the first draft here: > > https://github.com/the-isz/pyurlview > > When I call it with an email file passed to the '-f' argument, it does > pretty much what I want already. However, I intend to use it in mutt, > which pipes the message to the program like so: > > macro pager \cu <pipe-entry>'pyurlview.py'<enter> 'Follow links with pyurlview' > > The problem is rather obvious but - unfortunately - not so easy to solve: > > * The program reads the mail from stdin > * The terminal in which it runs is a pseudo-terminal (pipe) > * curses is not able to accept user input from the pseudo-terminal > > The question is: > > How do I read from stdin first and afterwards allow curses to read user > input? > > Thanks in advance and kind regards, > > Timo
Back to top | Article view | comp.lang.python
csiph-web