📌 置頂: 請把任何比你弱勢的用路人當作你的至親對待。跟前車保持安全車距 (2秒以上)。

Building, Debugging, Developing GNOME VTE Terminal

In

Tags:



by

Gnome Vte is a virtual terminal widget for GTK+ applications. It is used in various GTK+ applications, such as Guake, lxterminal, qemu, remmina, terminator…etc.

Its a well done infrastructure library, but with poor documentation about how to building, debugging, and developing this library.

Here are some notes to fill the gap.

Building

We can use -D to pass configuration to meson, such as enable debug mode or chang the install prefix:

Debugging

Vte provide its _vte_debug_print debug print logger, we can setup environment variable to trigger the logger:

You can provide multiple logging level to the variable:

Here is the full logging level list:

If you want to log all events, please use “all”: VTE_DEBUG=all guake

Developing

Adding new python wrapper API function

  • Add function inside src/vtegtk.cc
  • Add declaration to src/vte/vteterminal.h with _VTE_PUBLIC & _VTE_GNUC_NONNULL(1)

Print Call Stack of function


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.