Scieneer Common Lisp 1.3.9 online documentation

ext:get-stream-command stream[Function]

This takes a stream and waits for text or a command to appear on it. If text appears before a command, this returns nil, and otherwise it returns a command.