User avatar
Grumpy Mike
Posts: 1005
Joined: Sat Sep 10, 2011 7:49 pm
Location: English Lake District

How to exit minicom? [obsolete]

Thu Apr 24, 2014 8:40 am

I have minicom 2.6.1 running on the NOBOS Pi distribution.
I have it connected to a bluetooth modem attached to the serial port on the GPIO connector and I am talking to a terminal on my Mac. All works well and I can send text back an forth between the two.

However, minicom does not respond to CTRL-A Z for help nor CTRL-C nor Esc, so how do I quit this program without rebooting the machine?

Joe Schmoe
Posts: 4277
Joined: Sun Jan 15, 2012 1:11 pm

Re: How to exit minicom?

Thu Apr 24, 2014 8:43 am

Quite so. This is why you shouldn't use minicom. It has the worst user interface - ever!
Among other things, I could never figure out how to get out of it.
Literally, I've never seen a program that tried so hard to make its user interface horrible.

Use "screen" instead. (Seriously, this is not a typo - "screen" works fine as a "com program")

Or Seyon…
And some folks need to stop being fanboys and see the forest behind the trees.

(One of the best lines I've seen on this board lately)

User avatar
redhawk
Posts: 3465
Joined: Sun Mar 04, 2012 2:13 pm
Location: ::1

Re: How to exit minicom?

Thu Apr 24, 2014 8:46 am

Is it not possible to open another virtual console (or remote ssh) and simply login, find the PID and kill it with -9 or -1 -1??

Richard S.

User avatar
Richard-TX
Posts: 1549
Joined: Tue May 28, 2013 3:24 pm
Location: North Texas

Re: How to exit minicom?

Thu Apr 24, 2014 8:47 am

Minicom can be a problem if the env variable TERM is not set correctly.

hit enter. then cntl-A then q then enter to exit minicom.

There is also cu if you want bare bones.
Richard
Doing Unix since 1985.
The 9-25-2013 image of Wheezy can be found at:
http://downloads.raspberrypi.org/raspbian/images/raspbian-2013-09-27/2013-09-25-wheezy-raspbian.zip

User avatar
DougieLawson
Posts: 42641
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK

Re: How to exit minicom?

Thu Apr 24, 2014 8:52 am

minicom has the blindingly obvious ctrl a & x to exit.

Whoever created that should be drawn, hanged and quartered and their remains should be left for public inspection in the Tower of London.
Languages using left-hand whitespace for syntax are ridiculous

DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors - are all on my foes list.

The use of crystal balls and mind reading is prohibited.

User avatar
Grumpy Mike
Posts: 1005
Joined: Sat Sep 10, 2011 7:49 pm
Location: English Lake District

Re: How to exit minicom?

Thu Apr 24, 2014 8:56 am

Richard-TX wrote: hit enter. then cntl-A then q then enter to exit minicom.
Thanks this did the trick.

Also this works as well
minicom has the blindingly obvious ctrl a & x to exit.

User avatar
redhawk
Posts: 3465
Joined: Sun Mar 04, 2012 2:13 pm
Location: ::1

Re: How to exit minicom?

Thu Apr 24, 2014 8:58 am

The key binding may had been deliberate if for example you're accessing a remote shell and need to quit an application without quitting minicom.

Richard S.

User avatar
DougieLawson
Posts: 42641
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK

Re: How to exit minicom?

Thu Apr 24, 2014 9:02 am

redhawk wrote:The key binding may had been deliberate if for example you're accessing a remote shell and need to quit an application without quitting minicom.

Richard S.
That makes sense, the death sentence can be stayed. It's no different from ctrl [ in telnet to get back to command mode.
Languages using left-hand whitespace for syntax are ridiculous

DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors - are all on my foes list.

The use of crystal balls and mind reading is prohibited.

User avatar
joan
Posts: 16247
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: How to exit minicom?

Thu Apr 24, 2014 9:40 am

Grumpy Mike wrote:I have minicom 2.6.1 running on the NOBOS Pi distribution.
I have it connected to a bluetooth modem attached to the serial port on the GPIO connector and I am talking to a terminal on my Mac. All works well and I can send text back an forth between the two.

However, minicom does not respond to CTRL-A Z for help nor CTRL-C nor Esc, so how do I quit this program without rebooting the machine?
For future reference

man minicom

gives the answer.

Generally for help on a command try man command

Joe Schmoe
Posts: 4277
Joined: Sun Jan 15, 2012 1:11 pm

Re: How to exit minicom?

Thu Apr 24, 2014 10:14 am

The advice stands, however, that minicom is a stupid program and one not intended to be used.
And some folks need to stop being fanboys and see the forest behind the trees.

(One of the best lines I've seen on this board lately)

User avatar
apple.pi
Posts: 1
Joined: Fri Nov 14, 2014 8:18 am

Re: How to exit minicom?

Fri Nov 14, 2014 8:20 am

To Exit from minicom: click Ctrl- A, Z then X.

Joe Schmoe
Posts: 4277
Joined: Sun Jan 15, 2012 1:11 pm

Re: How to exit minicom?

Fri Nov 14, 2014 9:16 am

apple.pi wrote:To Exit from minicom: click Ctrl- A, Z then X.
That might work, but the best advice - the best way to be not in minicom - is not to have run it at all.
And some folks need to stop being fanboys and see the forest behind the trees.

(One of the best lines I've seen on this board lately)

inmild
Posts: 2
Joined: Sun Jul 26, 2015 4:57 am

Re: How to exit minicom?

Fri Jul 31, 2015 8:37 am

Try to use:
(Hold down) Ctrl + Shift + a (release then type) z
then big window appeared : Minicom Command Summary
type: q
small window appeared:
Leave without reset? <enter>

hope help others.

danger89
Posts: 6
Joined: Sat Jun 21, 2014 10:27 pm

Re: How to exit minicom?

Tue Aug 25, 2015 7:21 pm

Just ctrl+a and then 'x' just works.

Joe Schmoe
Posts: 4277
Joined: Sun Jan 15, 2012 1:11 pm

Re: How to exit minicom?

Tue Aug 25, 2015 7:53 pm

It needs to be pointed out again that the best way to solve this problem (How do I ensure that I am not in minicom?) is:

Code: Select all

# apt-get purge minicom
Viable alternatives include:
  1. Seyon (X GUI)
  2. screen (command line)
And some folks need to stop being fanboys and see the forest behind the trees.

(One of the best lines I've seen on this board lately)

User avatar
KLL
Posts: 1453
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand

Re: How to exit minicom?

Wed Aug 26, 2015 12:43 am

Joe Schmoe wrote:Seyon
if you are as stupid as me and not get that running,
but still want a serial terminal in Desktop, try
sudo apt-get install cutecom
option:
nano /home/pi/Desktop/cutecom.desktop

Code: Select all

[Desktop Entry]
Type=Application
Comment=RPI serial terminal
Name=cutecom
Exec=lxterminal -e 'cutecom'
Icon=gpicview.png
Terminal=false
Categories=Utility
StartupNotify=true
the dropdown list for devices show only "ttyS.." but you can type in ttyACM0 .. and it will remember it.
looks like
Image
i just install it and it looks as i expect it from a modern ( desktop) tool
but i can not say how good it really is

Return to “Beginners”