Skip to content

Instantly share code, notes, and snippets.

@saitoha
saitoha / vim-focus-event-in-terminal.diff
Last active August 12, 2016 18:00
vim: focus event tracking - version 3
diff --git a/runtime/doc/term.txt b/runtime/doc/term.txt
index 1eea20f..016b8f6 100644
--- a/runtime/doc/term.txt
+++ b/runtime/doc/term.txt
@@ -306,6 +306,10 @@ Added by Vim (there are no standard codes for these):
|xterm-true-color|
t_8b set background color (R, G, B) *t_8b* *'t_8b'*
|xterm-true-color|
+ t_fe enable focus-event tracking *t_fe* *'t_fe'*
+ |xterm-focus-event|
@saitoha
saitoha / gimp-file-sixel.patch
Last active May 8, 2016 07:35
gimp: SIXEL file coder plugin
commit e7356ec11f4e7f8eb5d74ef491a9106ae8646034
Author: Hayaki Saito <saitoha@me.com>
Date: Fri May 6 02:46:15 2016 +0900
Add SIXEL file plugin
diff --git a/plug-ins/common/.gitignore b/plug-ins/common/.gitignore
index 61c986d..339e12c 100644
--- a/plug-ins/common/.gitignore
+++ b/plug-ins/common/.gitignore
@saitoha
saitoha / emoji-option.diff
Created February 28, 2016 16:10 — forked from mattn/emoji-option.diff
Emoji Support for Vim (with emoji option)
diff --git a/runtime/tools/unicode.vim b/runtime/tools/unicode.vim
index d733fe8..dfe9cef 100644
--- a/runtime/tools/unicode.vim
+++ b/runtime/tools/unicode.vim
@@ -251,6 +251,27 @@ func! BuildWidthTable(pattern, tableName)
wincmd p
endfunc
+" Build the amoji width table in a new buffer.
+func! BuildEmojiTable(pattern, tableName)
@saitoha
saitoha / screen-osc11.patch
Created January 19, 2016 14:35
GNU Screen: Support OSC 11 sequence (set background color)
diff -ur ansi.c ansi.c
--- ansi.c 2015-04-08 14:34:29.000000000 +0900
+++ ansi.c 2016-01-19 23:23:20.000000000 +0900
@@ -1554,12 +1554,10 @@
}
#endif
#ifdef RXVT_OSC
- if (typ == 0 || typ == 1 || typ == 2 || typ == 20 || typ == 39 || typ == 49)
+ if (typ == 0 || typ == 1 || typ == 2 || typ == 11 || typ == 20 || typ == 39 || typ == 49)
{
@saitoha
saitoha / README.txt
Last active June 19, 2022 09:51
Install mlterm-cocoa via Homebrew
# install
$ brew install https://gist.githubusercontent.com/saitoha/3377f59b0bf87882f319/raw/mlterm-cocoa.rb
# settings
$ mkdir $HOME/.mlterm
$ curl https://gist.githubusercontent.com/saitoha/3377f59b0bf87882f319/raw/color > $HOME/.mlterm/color
$ curl https://gist.githubusercontent.com/saitoha/3377f59b0bf87882f319/raw/font > $HOME/.mlterm/font
$ curl https://gist.githubusercontent.com/saitoha/3377f59b0bf87882f319/raw/main > $HOME/.mlterm/main
@saitoha
saitoha / yaft-pixelsize.diff
Created July 15, 2015 15:09
yaft: rreturn pixel size over TIOCGWINSZ
diff --git a/x/yaftx.c b/x/yaftx.c
index 891450d..6c63562 100644
--- a/x/yaftx.c
+++ b/x/yaftx.c
@@ -104,7 +104,8 @@ void xresize(struct xwindow *xw, struct terminal *term, XEvent *ev)
ws.ws_col = term->cols;
ws.ws_row = term->lines;
- ws.ws_xpixel = ws.ws_ypixel = 0;
+ ws.ws_ypixel = CELL_HEIGHT * term->lines;
@saitoha
saitoha / tmux-SIXEL.patch
Created July 14, 2015 16:21
tmux: SIXEL integration (for mlterm / RLogin, not works on XTerm)
diff --git a/input.c b/input.c
index d1ff17f..33fad13 100644
--- a/input.c
+++ b/input.c
@@ -1805,6 +1805,7 @@ input_dcs_dispatch(struct input_ctx *ictx)
{
const char prefix[] = "tmux;";
const u_int prefix_len = (sizeof prefix) - 1;
+ u_char *p;
@saitoha
saitoha / term.c.diff
Last active August 29, 2015 14:24
Fix for XTerm 8bit mode
diff -r 758fe8fd4bae src/main.c
--- a/src/main.c Sun Jul 19 14:42:23 2015 +0200
+++ b/src/main.c Mon Jul 20 19:52:53 2015 +0900
@@ -841,7 +841,6 @@
# if defined(FEAT_MBYTE)
may_req_ambiguous_char_width();
# endif
- may_req_bg_color();
#endif
@saitoha
saitoha / hiptext.rb
Created June 24, 2015 12:49
Homebrew formula for jart/hiptext(https://github.com/jart/hiptext)
require "formula"
class Hiptext < Formula
homepage "https://github.com/jart/hiptext"
head "https://github.com/jart/hiptext.git", :branch => "master"
depends_on "pkg-config" => :build
depends_on "ragel" => :build
depends_on :libpng
depends_on "jpeg"
@saitoha
saitoha / private_mode_40.diff
Last active August 29, 2015 14:20
Distribution terms: This patch is in public domain.
diff -r bb75c6c7c8be mlterm/ml_vt100_parser.c
--- a/mlterm/ml_vt100_parser.c Sat Apr 18 07:12:56 2015 +0900
+++ b/mlterm/ml_vt100_parser.c Tue Apr 28 00:29:45 2015 +0900
@@ -3370,6 +3370,7 @@
vt100_parser->is_app_cursor_keys = 0 ;
vt100_parser->is_app_escape = 0 ;
vt100_parser->is_bracketed_paste_mode = 0 ;
+ vt100_parser->is_allow_deccolm = 0 ;
vt100_parser->im_is_active = 0 ;