update boring modes and truncate lines for comint