In Terminal when you cycle through tabs, the default behaviour is to stop at theend and at the beginning.