Skip to content

Instantly share code, notes, and snippets.

View grandchild's full-sized avatar

jakob grandchild

  • Berlin
  • 03:17 (UTC +02:00)
View GitHub Profile
@grandchild
grandchild / gotk_timeoutadd_single.go
Created February 19, 2018 20:40
gotk glib.TimeoutAdd() single execution
// This code contains no error checking for brevity.
// Always check your errors, kids!
package main
import (
"fmt"
"github.com/gotk3/gotk3/glib"
"github.com/gotk3/gotk3/gtk"
)
@grandchild
grandchild / component-fields.yaml
Last active April 10, 2018 23:06
webvs - webvsc - component differences
# abc -> field name in webvsc
# = -> no difference
# - -> missing in webvsc
# (a, b) -> different possible values
EffectList: { ### =
code: { ## =
init: string, # =
perFrame: string, # =
},
@grandchild
grandchild / PKGBUILD
Created July 26, 2018 18:59
PKGBUILD for mingw-w64-minizip
_pkgname=minizip
pkgname=mingw-w64-${_pkgname}
pkgver=2.3.8
pkgrel=1
epoch=1
pkgdesc='ZIP file extraction library (mingw-w64)'
url='https://github.com/nmoinvaz/minizip'
license=('ZLIB' 'custom')
arch=('any')
makedepends=('git' 'mingw-w64-cmake' 'mingw-w64-configure')
@grandchild
grandchild / tty.log
Created October 19, 2020 16:00
test_keys.zsh results
■ zsh test_keys.zsh
TERM=xterm
Wait for prompt before pressing each key.
Press SPACE to skip to the next key.
Don't press any key within 10 seconds to abort.
Ready [y/N]? y
Press Backspace
Press Delete
Press ControlLeft
key_info[ControlLeft]='^[[D' # was '^[[1;5D'
Note the difference between the urxvt-unicode sessions, one with $TERM set to 'rxvt', the other with the default value!
As stated previously, AltLeft/-Right don't work in TTY mode, because they switch between ttys.