Fixes to let me copy&paste examples
Fixes to let me copy&paste examples

Signed-off-by: Sven Dowideit <6f6969dc7db01e7204496bfb27e43d63ec4b2eb3@home.org.au>

ThomasRooney/gexpect,tjyang/gexpect,davidwalter0/gexpect