Add a putchar trap.