Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • Thank you! Never would have come up with this, but it works perfectly. Commented Dec 1, 2022 at 8:18
  • Actually found an issue with this now in that I end up with mangled text at certain points, characters left over from previous inputs etc. when moving through history. Any suggestions to fix that? Commented Dec 5, 2022 at 12:57
  • @tsvallender Are you sure the issue is because of the trap? Check your PS1 first. Commented Dec 5, 2022 at 13:01
  • Thanks, yes I didn't mean to infer it was the trap causing it, just that I didn't have a complete solution. But that was the issue anyway. Thanks very much! Commented Dec 7, 2022 at 9:45