I'm working on and embedded system with a serial (RS232) console. (With a Linux desktop) I would like to connect to the serial port in emacs and be able to navigate the output with my normal emacs navigation (search / copy / yank / etc )
I am currently doing this with ansi-term + GNU Screen.
However, I cannot get the GNU Screen navigation to my liking.
Any suggestions??
If you are working with a graphical user interface, start Emacs by clicking its icon or by running emacs & at the command line. The & tells the command line to open Emacs in the background and immediately return control of the terminal to you.
7.7 How do I use a shell in Emacs? You can start an interactive shell in Emacs by typing M-x shell . By default, this will start the standard Windows shell cmd.exe . Emacs uses the SHELL environment variable to determine which program to use as the shell.
I'm not sure how GNU screen fits into the equation but have a look at serial-term.
Use C-cC-k to go to char mode and C-cC-j to go to line mode (where your normal bindings apply).
Killing the buffer closes the port (C-ck in char mode, C-xk in line mode).
This page covers using screen with ansi-term under emacs: GnuScreen
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With