Skip to content

Instantly share code, notes, and snippets.

@nagachika
Created July 24, 2009 05:38
Show Gist options
  • Save nagachika/153868 to your computer and use it in GitHub Desktop.
Save nagachika/153868 to your computer and use it in GitHub Desktop.
termtter plug-in for euc-jp terminal
# -*- coding: utf-8 -*-
# Termtter plugins for EUC-JP terminal.
#
require "kconv"
module ::Readline
class << self
alias :readline_old :readline
end
module_function
def readline(*args)
buf = readline_old(*args)
buf.toutf8
end
end
class << $stdout
def write(str)
super(str.toeuc)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment