A bug in tty.(No need to take offset into account)