How to implement a command history on a telnet client? (up/down arrows)
问题 I have a server that accept telnet connections for management. I miss the command history so I want to make my telnet session support it. My questions: 1) Do I have to implement that on the server side, so the server will send the past commands to the client and then the client can re-execute? 2) Is there anyway to implement this functionality in the telnet client (not messing with the server) ? If answer is 1) then I need to know how to capture and send the up and down arrow keys on my