Ivor Zhou
Ivor Zhou

Reputation: 1273

How auto-completion and history browsing work in remote shell (SSH)

It's easy to understand how to run a process and get its output through SSH.

How about auto-completion via tab and history browsing? What is the protocol or interface behind it?

Upvotes: 0

Views: 105

Answers (1)

rici
rici

Reputation: 241971

It's just a normal terminal interface, nothing special. You send characters (and control codes) through SSH to the remote server, and it sends characters (and control codes) back to your terminal emulator, which interprets the control codes and displays the characters.

For this to work, your terminal needs to be in "raw" mode (i.e., it does not echo characters or interpret backspaces and other control codes). The ssh client program configures your terminal emulator properly before establishing the connection.

Upvotes: 3

Related Questions