#!/usr/bin/env bash

# Make sure it's there
emacs-check

# color hack
[ "$TERM" == xterm ] && TERM=xterm-256color
export TERM

exec emacsclient -t "$@"

