Build the input loop.
Associate the cmdline input and the functions.
Remove a debug code.