I am constantly getting frustrated with the GDB comint-mode
buffer when using GUD. Somehow my cursor always ends up straying from the bottom of the buffer, and then my input is not interpreted how I would expect.
Is there a way that I can make comint buffers behave more like term-mode
so that my keys get sent to the underlying process?
I realize that I will have to manually allow my debugging keys, but that should be easy because I use the function keys almost exclusively when debugging.
term-mode
is really good about forcing all input to be at the prompt. It also prevents deletion of the prompt, which is something that happens more than I care to admit. Perhaps a better way to phrase my request is "Can I make aterm-mode
buffer receivecomint
commands?"comint
to behave liketerm-char-mode
.term-mode
also has aterm-line-mode
, where line are sent to the process. This is not just a matter of language, actually : you can activateterm-char-mode
in a comint buffer. It is probably not a supported way of operating comint, it will not work for everything (for example getting completion candidates from the underlying process this way is messy at best), but maybe it will solve your particular issues, it is worth trying.