improvement: separate the looping of user input out of the list and move it to the IOHelper

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
add rdocs to iohelper

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
return the selected item from the list

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
print the selected index of the list in the example

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
clear line during final print

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
separate clearing of some printed text into an independent function

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
iohelper adds detection of the console window size

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
improvement: moved prompt rendering to IOHelper

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
simplified calls to update_prompt

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>