Drkcore

26 10 2011 Scala Tweet

Console.scalaで出力する文字の色を変える

Console.scalaを読んでいたらANSI color codesをvalで定義してあった

scala> import Console._
import Console._

scala> println(YELLOW + "yellow" + RESET + " and "+ RED + "red" + RESET)

こんなので、色が付くので便利かも

term color

About

  • もう5年目(wishlistありマス♡)
  • 最近はPythonとDeepLearning
  • 日本酒自粛中
  • ドラムンベースからミニマルまで
  • ポケモンGOゆるめ

Tag

Python Deep Learning javascript chemoinformatics Emacs sake and more...

Ad

© kzfm 2003-2021