Skip to content

Instantly share code, notes, and snippets.

@ttdoda
ttdoda / slrm-test3.txt
Created July 1, 2013 17:08
左マージンの動作テスト。VT525はかなり意外な動作をする。 この挙動を再現している端末エミュレータはおそらく無い。
7[?69h812345678901234567890
#aaa
%**************************************************************
bbb
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@7[?69l8
VT525's result as follows.
12345678901234567890
# aaa
diff -r 92c9748e0ccb src/config.h.in
--- a/src/config.h.in Sun Oct 06 17:46:56 2013 +0200
+++ b/src/config.h.in Sun Oct 13 23:11:37 2013 +0200
@@ -442,3 +442,6 @@
/* Define if you want Cygwin to use the WIN32 clipboard, not compatible with X11*/
#undef FEAT_CYGWIN_WIN32_CLIPBOARD
+
+/* Define if we have AvailabilityMacros.h on Mac OS X */
+#undef HAVE_AVAILABILITYMACROS_H
@atty303
atty303 / gist:7261749
Last active December 27, 2015 03:48
iTerm2 + AquaSKK

iTerm2 + AquaSKK

AquaSKK を素の iTerm2 で使うと、IM 状態を変更するための "C-j" や "l" がそのまま入力されてしまって不便という問題があり、 以下のあたりでその問題を直すパッチを作ってくださった方がおりました。

僕も 1.0.0 が出たころに上記パッチを当てた iTerm2 をずっと使ってました。

@deton
deton / tsf-vim-vac2012.markdown
Last active April 14, 2025 15:45
Vi風操作をWindows用IMEとして実装
#!/bin/sh
GH_TOKEN=$1
UPLOAD_FILE=$2
GH_USER_NAME=$3
GH_REPO_NAME=$4
VERSION=$5
if [ $# -ne 5 ]; then
echo "Invalid arguments."
@olofsen
olofsen / rs.jl
Last active May 31, 2020 06:15
Reading, displaying, and converting a Sixel Graphics file with Julia
# The function ds() below reads a Sixel graphics file and creates an RGB Image,
# which can then be displayed and processed using the Image package.
# Public domain example code.
using Color, Images, ImageView
function vt340_palette()
pal = RGB[]
push!(pal, RGB(0.00, 0.00, 0.00))
push!(pal, RGB(0.20, 0.20, 0.80))
diff --git a/src/ansi.c b/src/ansi.c
index d88e153..fc42a0a 100644
--- a/src/ansi.c
+++ b/src/ansi.c
@@ -1493,8 +1493,24 @@ int c;
{
if (curr->w_stringp >= curr->w_string + MAXSTR - 1)
curr->w_state = LIT;
+# ifdef UTF8
+ else if (c < 0x80)
@uobikiemukot
uobikiemukot / 16palette.sixel
Last active August 29, 2015 14:02
show default 16 color palette of sixel
Pq"1;1;128;36
#0!16~#1!16~#2!16~#3!16~#4!16~#5!16~#6!16~#7!16~$-
#0!16~#1!16~#2!16~#3!16~#4!16~#5!16~#6!16~#7!16~$-
#0!16~#1!16~#2!16~#3!16~#4!16~#5!16~#6!16~#7!16~$-
#8!16~#9!16~#10!16~#11!16~#12!16~#13!16~#14!16~#15!16~$-
#8!16~#9!16~#10!16~#11!16~#12!16~#13!16~#14!16~#15!16~$-
#8!16~#9!16~#10!16~#11!16~#12!16~#13!16~#14!16~#15!16~$-
\
@ttdoda
ttdoda / gist:c9db22ed1668e2e29a76
Last active August 29, 2015 14:03
Application Escape Key Mode改良試験用設定
let &t_SI .= "\e[?14004h"
let &t_EI .= "\e[?14004l"
inoremap <special> <Esc>[=27%~ <nop>
noremap <special> <Esc>[=27%~ <nop>
@uobikiemukot
uobikiemukot / w3m-sixel.patch
Last active August 29, 2015 14:06
sixel inline image patch for w3m-0.5.3
--- terms.c.orig 2014-09-23 21:36:24.992432936 +0900
+++ terms.c 2014-09-23 21:51:16.598842197 +0900
@@ -463,6 +463,80 @@
#define MOVE(line,column) writestr(tgoto(T_cm,column,line));
+int output_sixel_fp(char *file, int x, int y)
+{
+ int length;
+ long size, rsize, count = 0;