change tsh for the command line window

change start from fork to thread