Skip to content

Instantly share code, notes, and snippets.

@saitoha
Last active June 19, 2022 09:51
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saitoha/3377f59b0bf87882f319 to your computer and use it in GitHub Desktop.
Save saitoha/3377f59b0bf87882f319 to your computer and use it in GitHub Desktop.
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
blue=#6699ff
hl_blue=#6699ff
green=#66ff66
hl_green=#66ff66
red=#ff6666
hl_red=#ff6666
yellow=#ffd314
hl_yellow=#ffd314
magenta=#9b4fff
hl_magenta=#9b4fff
ISO10646_UCS4_1 = Monaco;
ISO10646_UCS4_1_BIWIDTH = Hiragino Kaku Gothic ProN;
fg_color = white
bg_color = black
alpha = 160
fontsize = 18
scrollbar_mode = right
use_variable_column_width = false
use_combining = true
use_dynamic_comb = true
col_size_of_width_a = 1
logsize = 4096
require "formula"
class MltermCocoa < Formula
homepage "http://mlterm.sourceforge.net/"
url "https://downloads.sourceforge.net/project/mlterm/01release/mlterm-3.6.0/mlterm-3.6.0.tar.gz"
head "https://bitbucket.org/arakiken/mlterm", :using => :hg
sha1 "a71fd2643e19e96bba9b452620c6ae80bdcce4df"
keg_only "Conflicts with non-cocoa mlterm."
depends_on 'pkg-config' => :build
def install
system "./configure", "--prefix=#{prefix}", "--with-gui=quartz"
system "make"
system "make", "install"
system "cp -pvr cocoa/mlterm.app /Applications/"
system "mkdir -p /Applications/mlterm.app/Contents/MacOS"
system "HOME=/Applications cocoa/install.sh #{prefix}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment