fix editor on terminal