Building, Debugging, Developing GNOME VTE Terminal

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




如果你覺得這篇文章不錯,歡迎打賞

BTH: 35QooNA82isrmQLmpEnqXpJoxeZmaPubPf

ETH:0x4cf61fea5EA842D202B85158d8b5e239C872De46

或是點選下方圖片贊助我一杯咖啡:

Leave a reply:

Your email address will not be published.

這個網站採用 Akismet 服務減少垃圾留言。進一步了解 Akismet 如何處理網站訪客的留言資料