solve prompt bug on linux