18 Jul 2009 18:21
permanent prompt at the bottom, while stdout grows above (scrollable)
Jan-Philip Gehrcke <jgehrcke <at> googlemail.com>
2009-07-18 16:21:55 GMT
2009-07-18 16:21:55 GMT
Hey urwid list! I am planning a commandline application with a special design and would like to know if urwid is the module I need to realize this(Continue reading)The structure of the application I imagine: 1) the "endless loop part": --------------------------- A background thread permanently runs and checks a web service let's say every X seconds. Depending on what it sees and on special user-given parameters it makes some decisions and runs this, this or that function/code. During this endless process, some stdout is produced to log to the terminal what's happening. 2) the "deterministic part": ---------------------------- The user should be able to interact with the application using a prompt where he can enter special commands by typing "command + ENTER". When he presses ENTER, the command is processed by the deterministic part of the application; the "user-input-processing-part" so to say. This starts some special code, e.g. changing some variables, running some functions and -- of course -- producing some output to stdout, too. The code invoked by entering a command is deterministic (not an endless loop, no endless stdout). Regarding the prompt and displaying stdout I would like to have the following behaviour: - the prompt is one line fixed on the screen (let's say on the bottom) - Before pressing ENTER, the user should be able to move through what
The structure of the application I imagine:
1) the "endless loop part":
---------------------------
A background thread permanently runs and checks a web service let's say
every X seconds. Depending on what it sees and on special user-given
parameters it makes some decisions and runs this, this or that
function/code. During this endless process, some stdout is produced to
log to the terminal what's happening.
2) the "deterministic part":
----------------------------
The user should be able to interact with the application using a prompt
where he can enter special commands by typing "command + ENTER". When he
presses ENTER, the command is processed by the deterministic part of the
application; the "user-input-processing-part" so to say. This starts
some special code, e.g. changing some variables, running some functions
and -- of course -- producing some output to stdout, too. The code
invoked by entering a command is deterministic (not an endless loop, no
endless stdout).
Regarding the prompt and displaying stdout I would like to have the
following behaviour:
- the prompt is one line fixed on the screen (let's say on the bottom)
- Before pressing ENTER, the user should be able to move through what
RSS Feed