LoginSignup
5
2

More than 5 years have passed since last update.

Elixirのiexでエラーの色を変える

Posted at

以下をiexで実行するとエラーやスタックトレースの表示色を変えることができます。

IEx.configure(
  colors: 
      [eval_error: [IO.ANSI.color(5,1,1)], 
       stack_info: [IO.ANSI.color(1,2,1)] ]
)

~/.iex.exsに上記をそのまま書けば、iex起動時にデフォルト色が変更できます。

その他の設定についてはドキュメントをご覧ください。

5
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
2