Vim Advent Calendar 2012の345日目(2013-11-10)の記事です。
普通のWindowsアプリにおいて、擬似的にViエディタのNormal mode編集操作を使えるようにするIMEを作りました。
# encoding: utf-8 | |
module TelSplitter | |
MAP = { | |
# 市外局番 , 市内局番の桁数のマップ | |
# http://www.soumu.go.jp/main_sosiki/joho_tsusin/top/tel_number/number_shitei.html のデータを利用 | |
# 固定電話以外の桁数は適当です... | |
'050' => 4, # IP電話 | |
'070' => 4, # 携帯電話/PHS | |
'080' => 4, # 携帯電話 |
#!/bin/bash | |
# sixcat: Use sixel graphics to show an image inside a terminal. | |
# sixgif: Use sixel graphics to play an animation inside a terminal. | |
# Version 1.0 | |
# hackerb9, June 2017 | |
# Sixel graphics are supported by terminals such as the DEC VT340 and | |
# emulators, such as 'xterm -ti vt340'. |
Vim Advent Calendar 2012の345日目(2013-11-10)の記事です。
普通のWindowsアプリにおいて、擬似的にViエディタのNormal mode編集操作を使えるようにするIMEを作りました。
#include <Carbon/Carbon.h> | |
typedef void *CGSConnectionID; | |
extern CGSConnectionID _CGSDefaultConnection(void); | |
#define CGSDefaultConnection _CGSDefaultConnection() | |
typedef uint64_t CGSSpace; | |
typedef enum _CGSSpaceType { | |
kCGSSpaceUser, | |
kCGSSpaceFullscreen, |
diff --git a/screen-write.c b/screen-write.c | |
index 15f8d07..8a175a6 100644 | |
--- a/screen-write.c | |
+++ b/screen-write.c | |
@@ -1334,6 +1334,7 @@ screen_write_cell(struct screen_write_ctx *ctx, const struct grid_cell *gc) | |
ctx->cells++; | |
/* If the width is zero, combine onto the previous character. */ | |
+ /* | |
if (width == 0) { |
このドキュメントは http://www.bluetail.com/~joe/vol1/v1_oo.html で行われたオリジナルの講演のコピーである
# 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)) |
/* | |
* TSM - Unicode Handling | |
* | |
* Copyright (c) 2011-2012 David Herrmann <dh.herrmann@googlemail.com> | |
* Copyright (c) 2011 University of Tuebingen | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining | |
* a copy of this software and associated documentation files | |
* (the "Software"), to deal in the Software without restriction, including | |
* without limitation the rights to use, copy, modify, merge, publish, |