add Ctrl-D handler
Merge branch 'master' of https://github.com/Z-Shang/LoLi