Thomas Orgis - 2016-11-28

This indeed sounds like a useful idea. Some state machine code in term.c should be able to handle this...