After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 118800 - vte_terminal_get_cursor_position() not available in Python
vte_terminal_get_cursor_position() not available in Python
Status: RESOLVED FIXED
Product: vte
Classification: Core
Component: general
0.10.x
Other Linux
: Normal enhancement
: ---
Assigned To: VTE Maintainers
Nalin Dahyabhai
Depends on:
Blocks:
 
 
Reported: 2003-07-31 20:05 UTC by Jon Willeke
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
Add vte.Terminal.get_cursor_position (Python binding) (755 bytes, patch)
2003-07-31 20:08 UTC, Jon Willeke
none Details | Review

Description Jon Willeke 2003-07-31 20:05:44 UTC
The vte_terminal_get_cursor_position() function is not exposed to the
Python binding:

  >>> vte.Terminal().get_cursor_position()
  Traceback (most recent call last):
  • File "<stdin>", line 1 in ?
    AttributeError: 'Terminal' object has no attribute 'get_cursor_position'

I'm attaching a patch against 0.10.29 that adds support for
vte.Terminal.get_cursor_position(), which takes no arguments and returns a
column-row tuple.  I'm not experienced with the Python/C binding, so caveat
maintainor.
Comment 1 Jon Willeke 2003-07-31 20:08:56 UTC
Created attachment 18795 [details] [review]
Add vte.Terminal.get_cursor_position (Python binding)
Comment 2 Nalin Dahyabhai 2003-08-11 19:31:21 UTC
Applying to HEAD.  Thanks!