Some libedit experimentation (mostly lifted from the example code)