Menu

SVN archive Commit Log


Commit Date  
[r15772] by bugman

Better control of the relax prompt colouring via ANSI escape sequences.

The new Exec_info.prompt_colour_on() and Exec_info.prompt_colour_off() methods are now used to turn
the colours on and off by aliasing the coloured or non-colours prompts to both the class instance
namespace and to the sys module.

2012-04-17 17:30:16 Tree
[r15771] by bugman

Shifted the script colouring ANSI escape sequences into the 'ansi' module.

2012-04-17 17:04:04 Tree
[r15770] by bugman

Fix for a typo in r15769.

2012-04-17 16:50:11 Tree
[r15769] by bugman

Shifted the terminal colouring ANSI escape sequences into their own 'ansi' module.

This will allow the colours to be easily changed.

2012-04-17 16:49:22 Tree
[r15768] by bugman

The test suite is now only imported in the test modes of operation.

This should also speed up program initialisation.

2012-04-17 16:32:17 Tree
[r15767] by bugman

The import of the gui package now only occurs in GUI mode.

This will speed up the program start up. It also has the side effect of bypassing the hack of the
GUI resetting the ANSI escape characters of the relax prompt.

2012-04-17 16:27:46 Tree
[r15766] by bugman

The script print out in scripting mode is now in green if sys.stdout is a TTY.

2012-04-17 16:23:53 Tree
[r15765] by bugman

Added isatty() methods to all of the dummy file objects within relax.

This fixes a number of errors caused by the recent introduction of coloured text.

2012-04-17 16:18:35 Tree
[r15764] by bugman

ANSI escape characters are now turned off forcibly when in GUI mode.

The prompt.interpreter.Interpreter class was being initialised during the import startup phase due to
the gui.interpreter.Interpreter singleton class. This meant that sys.stdout had not been redirected
to the relax controller yet and was still set to the terminal TTY. This hack turns off the relax
prompt colouring forcibly.

2012-04-17 15:41:06 Tree
[r15763] by bugman

Reverted r15756 as the status.text_colouring flag is no longer needed.

The command used was:
svn merge -r15756:r15755 .

.....
r15756 | bugman | 2012-04-17 16:33:03 +0200 (Tue, 17 Apr 2012) | 6 lines
Changed paths:
M /1.3/relax.py
M /1.3/status.py

Added a flag to the status singleton object to signal if text output can be coloured.

This is only activated when sys.stdout has not been changed. Unix redirection and pipes will need
to be handled later (http://mail.python.org/pipermail/python-list/2012-April/1291044.html).
.....

2012-04-17 15:01:00 Tree
Older >
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.