fix displayit()

- functions relied on termbuf temrinated with newline. Dropped last
  character in display if not present.
- Further added include guards.