add code sample
Merge remote-tracking branch 'upstream/master'
Set terminal mode before prompting and reset after reading a line. Cycle through completions.