Commit graph

18 commits

Author SHA1 Message Date
Benoit Verret
4f1c687102 Save indented lines in console history
Mimic the behavior of the standard Python console by storing
indented lines in history.
2020-09-30 09:17:04 -04:00
Benoît Verret
ddc94197aa
Keep console input when switching server (#6607)
Console input was being replaced by an empty line every time the
server used changed.
2020-09-18 16:30:43 +00:00
Benoît Verret
77287e0fc7
Fix multiline script error (#6581)
Syntax errors emerged when running multiline scripts in the console
when using the run() command.
2020-09-15 17:23:22 +00:00
Benoit Verret
9e35f1f8ac Fix handling of constructs in console
- Replace "...." by "... " in multiline constructs.
- Execute constructs after one empty line and not two or three. It
  was more or less random before.
2020-09-03 06:39:57 -04:00
Benoit Verret
4b76541d4c Remove unused methods from Console
set_history(), get_history() and register_command() were never used.
2020-08-07 07:55:19 -04:00
Benoit Verret
822083d168 Remove empty startup message from console
Change >> to >>> as in a normal Python console.
Avoid printing an empty string which is why the console looked like:
>>
Network banner
>>

Instead of:
Network banner
>>>
2020-08-03 05:21:30 -04:00
Benoit Verret
86939c6007 Remove welcome_message from console.py
It is not used anymore.
The console prints network.banner instead.
2020-08-02 07:26:54 -04:00
ThomasV
a7fa92b66f
Merge pull request #6387 from verretor/clear-console
Keep current input when clearing Python console
2020-07-29 17:49:45 +02:00
Benoit Verret
c8a4c11a78 Remove __main__ from console.py
The Python console isn't meant to run as a standalone.
2020-07-17 13:59:55 -04:00
Benoit Verret
db5d5183d7 Keep current input when clearing Python console
Ctrl+L should clear the whole console except the current line like
a standard Python console.
2020-07-14 12:00:54 -04:00
Benoit Verret
c5577b0271 Clean console.py
Remove a nonessential line and fix a typo.
2020-07-14 09:24:34 -04:00
SomberNight
b11cb11d95
qt console: failed to print certain objects with custom __eq__ 2019-05-05 17:59:45 +02:00
SomberNight
441da52b51
fix more DeprecationWarnings 2019-03-27 19:27:45 +01:00
SomberNight
026448837f
no more "import *"
fixes #5101
fixes #5105
2019-02-11 20:21:24 +01:00
SomberNight
5e0179dac4
qt console: expose more refs, and fix auto-complete for >2 depth 2018-10-29 00:20:45 +01:00
SomberNight
d759546b32
qt console: fix word wrap 2018-10-03 18:26:09 +02:00
SomberNight
33d14e4238
some import clean-up in qt 2018-09-25 18:15:28 +02:00
Janus
097ac144d9 file reorganization with top-level module 2018-07-13 14:01:37 +02:00
Renamed from gui/qt/console.py (Browse further)