Hi Eric,

Why (how) is the interactive console different from a Windows/Linux
terminal?

The fact is that for a GUI-based terminal to work like a real
terminal, you have to emulate the features of a terminal. For example,
on KDE (Linux), Konsole is a GUI-based (Qt4) terminal which fully
emulates terminal features. On the contrary, to keep it simple and
easy to maintain, Spyder's consoles do not emulate all terminal
features, like for example the control characters (e.g. Ctrl+Z or Ctrl
+D -- note that there is partial implementation of Ctrl+C) or terminal
colors, ...

In the future, we could implement a full terminal emulation in Spyder
but that would require some work and is not the most important feature
to add right now.
Anyway, note that I'm aware of these limitations and I would certainly
like to remove them as soon as possible.

A way to do this could be to port "pyqonsole" (http://www.logilab.org/
project/pyqonsole) from PyQt3 to PyQt4 and then integrate it to
Spyder. Even if this would not be a very difficult task, note that
there is a big difference in terms of number of code lines between
pyqonsole and Spyder's console emulation.

Pierre

On Dec 20, 8:53 pm, el_abcd <[email protected]> wrote:
> Sorry, should be ctrl-z for windows EOF, not ctrl-d as my previous
> message mentioned.
>
> when in the python interpreter ctrl-d seems to be interpreted as an
> EOF, but when running the script from the dos command line I need to
> type ctrl-z in response to the "raw_input" prompt to get the expected
> EOFError exception.
>
> In the spyder interactive/external console I don't seem to be able to
> enter ctrl-z to generate the EOFError.
>
> Note: I don't expect to need to enter ctrl-z in spyder often, but am
> curious why it is different from running from the dos box.
>
> Thanks,
> Eric

--

You received this message because you are subscribed to the Google Groups 
"spyder" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/spyderlib?hl=en.


Reply via email to