minicom -s  (this is to configure the terminal)

to exit minicom

Press Ctrl – A , select Z , select X