flush input buffer