In a second he was standing at the prow , while the anchor was being weighed , and while the Sultan was repenting of his folly in allowing Fortunatus to try on the cap , the vessel was making fast for Cyprus .