add kill subprocess and fix some bugs

1. fix the bug when the cursor moved left, it can go through the preopt;
2. fix the bug when selected some text and move down until out the whole
window, it will print very more preport;
3. fix the bug when Home is pressed, all words are missing;
4. add the function to kill the executing process when it is necessary;