Skip to main content

refuse_agent_input

Function refuse_agent_input 

Source
pub(super) fn refuse_agent_input(ctx: &RpcContext) -> Result<(), String>
Expand description

The window’s input commands (blockinput keystrokes, setblocktermsize, and controllerinput’s Stop and resize) are the person’s hands: typed into a block they read as the person’s own words. A connection registered as an agent (the agent’s own token, proven at bus:register) writes into no block through them. An agent writes into its own terminal with the Terminal tool (the PtyShell API checks that the shell is its own) and reaches another agent with Message send. Everything else is as before.