Hello - mongoDB beginner user and community beginner, so would be grateful if you could point me towards the right place to pose this question.
Running mongodb community server 4.2.3 on Ubuntu 18.04. I am solely using the shell (command “mongo”) at this point. I am using a very simple terminal emulator which does not process ANSI codes (instead, it prints the control character bytes in decimal so they are visible.)
My question/problem is this - does mongoDB generate ANSI codes as part of it’s output back to a user?
When I enter a command (for example, help), the response I get back includes an echo of the command with some embedded ANSI (ANSI-type?) sequences (each sequence begins with two bytes - [ - followed by another byte or two.
Example: When I type help (and hit the enter key),
I get this response: help[3G[Jhelp[7G
followed by the expected response to a help command:
db.help() help on db methods
db.mycoll.help() … and so on
but with the addition of a tab character (byte value 9) at the start of each line of text.
Here are my specific questions:
- Are these control codes being emitted by mongoDB shell, or inserted by the telnet server (telnetd)?
- If the control codes are being emitted by mongoDB shell, can they be turned off, so I only get pure text with newlines?
Thanks very much, and again, as I am new to the community, please assist by pointing me to the correct user group if this is not the appropriate place.