return early from flush when buffer empty + new method of buffer
return early from flush when buffer empty + new method of buffer

jcubic/jquery.terminal,jcubic/jquery.terminal,jcubic/jquery.terminal,jcubic/jquery.terminal