On Sat, Oct 20, 2012 at 12:41 PM, Wojtek wrote:
> On 19.10.2012 11:23, Xavier de Gaye wrote:
>> With the attached patch to the python2 branch, gdb output is
>> redirected to the terminal from which pyclewn has been launched and
>> the (clewn)_console window is not used. The following changes have
>> been made:
>>
>> debugger.py: remove all the lines in the vim script function
>> s:winsplit()
>> netbeans.py: replace calls to ClewnBuffer.append with calls to
>> sys.stdout methods (with python3, one would use instead:
>> print(self.buffer, end=''))
>> tty.py: remove the line that sets the terminal in raw mode
>>
>> I don't plan to include this patch in pyclewn.
>>
>>
> Thank you for your patch - works great.
> Because I run pyclew from  gvim  (:Pyclewn) would't be a problem
> for you to show me how to spawn new tty and redirect consol to it also?


Not tested:
    Launch 'inferior_tty.py' in the same way it is done at
    cmd_inferiortty() in gdb.py. The first line written by
    inferior_tty to the result file is:

        set inferior-tty /dev/pts/xxx

    Then open and write to /dev/pts/xxx instead of sys.stdout in
    netbeans.py.


> You mentioned about redirect watched variables, is it possible in easy way?


Not possible unless using curses.


-- 
Xavier

Les Chemins de Lokoti: http://lokoti.alwaysdata.net

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Pyclewn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyclewn-general

Reply via email to