Menu

SVN archive Commit Log


Commit Date  
[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
[r15762] by bugman

The sys.std*.isatty() methods are now being used to determine if text output should be coloured.

This removes the need for the status.text_colouring flag, and can handle changes in IO redirection
occurring at any point. This was suggested at both
http://mail.python.org/pipermail/python-list/2012-April/1291046.html and
http://mail.python.org/pipermail/python-list/2012-April/1291048.html.

2012-04-17 14:50:34 Tree
[r15761] by bugman

Copyright update.

2012-04-17 14:40:20 Tree
[r15760] by bugman

All RelaxWarnings are now coloured yellow if the status.text_colouring flag is set.

Though this looks more like orange on the Konsole terminal under GNU/Linux.

2012-04-17 14:40:01 Tree
[r15759] by bugman

All RelaxErrors are now coloured red if the status.text_colouring flag is set.

2012-04-17 14:37:19 Tree
[r15758] by bugman

If the status.text_colouring flag is set, then the relax prompts will be coloured blue!

2012-04-17 14:36:41 Tree
[r15757] by bugman

Fix for the initialisation of the Exec_info class for the prompt/script output.

The class was not being initialised at all! Thought the variables were class rather than instance
variables, so the problem was hidden.

2012-04-17 14:35:38 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.