i’m writing a java code that connects and executes commands in a telnet based equipment.
when i login, appears a message like this:
Trying 10.11.115.160...
Connected to 10.11.115.160.
Escape character is '^]'.
the problem is that when i want logout, don’t know how to write this char ‘^]’ using a simple string, like this:
telnetClient.execute("^]");
or
telnetClient.execute("\uXXXX");
in a linux terminal, it works using ctrl + ].
i don’t found this char in the unicode table.
someone knows? thanks in advance
Ctrl + ]isU+001D INFORMATION SEPARATOR THREE, so it’s\u001d. It can be easily checked by runningcat | hexdumpand enteringCtrl + ],Ctrl + D.U+001B ESCAPEisCtrl + [.