On Jun 2, 2013 9:57 PM, "Bram Moolenaar" <[email protected]> wrote:
>
>
> Almost three years ago Mark Mahnic sent a patch to access the screen
> from inside Python.  It was sent on 2010 July 19.
>
> These are the docs:
>
>
> 6. Screen object                                        *python-screen*
>
> The screen object provides direct access to the Vim internal screen. The
> object has the following methods:
>
>    puts(row, col, attr, str, length=-1)
>          Write the string str at the absolute vim screen coordinate
>          (row, col) using the attribute attr. The optional length
>          parameter can be used to write only a part of the string.
>          The string str must be encoded so that it matches the
>          vim 'encoding' setting.
>
>    getHighlightAttr(syntaxName)
>          Get the value of the syntax element syntaxName. The value can be
>          used in subsequent calls to puts.
>          The string syntaxName must be encoded so that it matches the
>          vim 'encoding' setting.
>
>
> Does this fit in with the Python RFC?  I haven't heard requests from
> users for this functionality.  Also, it appears that after using this it
> requires Vim to redraw the screen, since it is unaware of what has been
> drawn.

I can hardly imagine how simple implementation could be useful and same for
the amount of work needed to create complex one. I think we need support
for non-regex-based syntax, but from the description it does not look like
something that can fix this problem.

> --
> hundred-and-one symptoms of being an internet addict:
> 51. You put a pillow case over your laptop so your lover doesn't see it
while
>     you are pretending to catch your breath.
>
>  /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net
\\\
> ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/\\\
> \\\  an exciting new programming language -- http://www.Zimbu.org
 ///
>  \\\            help me help AIDS victims -- http://ICCF-Holland.org
 ///
>
> --
> --
> You received this message from the "vim_dev" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>
> ---
> You received this message because you are subscribed to the Google Groups
"vim_dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Raspunde prin e-mail lui