set termencoding. used also by quickrun scala