2011/6/26 fanhe:
> Currently in pyclewn 1.6, if pyclewn started from vim with the :Pyclewn
> command, there is no terminal associated with pyclewn, and use the
> "inferior_tty.py" script which occupy a so high cpu usage.
Thanks for the bug report, I will fix it.
> So, I prefer useĀ a general terminal emulator such as gnome-terminal.
> These are main code snippets.
>
> python << PYTHON_EOF
> import subprocess
> import vim
> pyclewnPopen = subprocess.Popen(['gnome-terminal', '-t', 'pyclewn', '-e',
> "sh -c 'LC_ALL=en_US.UTF-8 VIM_SERVERNAME='%s' pyclewn --cargs=%s'" %
> (vim.eval('v:servername'), vim.eval('sTempFile'))])
> PYTHON_EOF
>
> Currently It works well here.
> Have any advices?
> Thanks.
Actually, when you run pyclewn in a terminal as you do here, behind
the scenes pyclewn runs the same code as the one used by
'inferior_tty.py' (the 'clewn.tty' python module) to create a pseudo-tty
suitable for use as gdb inferior tty.
--
Xavier
Les Chemins de Lokoti: http://lokoti.alwaysdata.net
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Pyclewn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyclewn-general