handle the user hitting ^D while interacting properly

git-svn-id: file:///home/svn/framework3/trunk@8911 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Joshua Drake 2010-03-25 01:38:47 +00:00
parent 79ac118f47
commit f7f0f03a4a
1 changed files with 2 additions and 0 deletions

View File

@ -204,6 +204,8 @@ class CommandShell
# Writes to the command shell.
#
def shell_write(buf)
return if not buf
begin
framework.events.on_session_command(self, buf.strip)
rstream.write(buf)