Skip to content

Instantly share code, notes, and snippets.

@inzanity
inzanity / cursorpos.patch
Created March 3, 2017 07:09
Fingerterm cursor position fix
diff --git a/textrender.cpp b/textrender.cpp
index ee1aff9..2eac738 100644
--- a/textrender.cpp
+++ b/textrender.cpp
@@ -76,6 +76,7 @@ TextRender::TextRender(QQuickItem *parent) :
iShowBufferScrollIndicator = false;
iFont = QFont(sUtil->fontFamily(), sUtil->fontSize());
+ iFont.setStyleHint(QFont::Monospace, QFont::StyleStrategy(QFont::PreferDefault | QFont::ForceIntegerMetrics));
iFont.setBold(false);
@inzanity
inzanity / bgterm.c
Created August 30, 2016 05:08
Background terminal
#include <gtk/gtk.h>
#include <glib/goption.h>
#include <vte/vte.h>
#include <stdlib.h>
static GdkRectangle geometry = { 0 };
static PangoFontDescription *font = NULL;
static gboolean parse_geometry(const gchar *option_name,
const gchar *value,

Keybase proof

I hereby claim:

  • I am inzanity on github.
  • I am inzitys (https://keybase.io/inzitys) on keybase.
  • I have a public key whose fingerprint is 3637 72B0 91B1 8C59 A959 DDEC 5FD4 5CD3 EA68 E29D

To claim this, I am signing this object: