This sets a channel's result code to the supplied value. It only affects
the result code, so it can be used to update a channel's state after its
condition changes.
Parameters:
tty - a UNIX tty name minus "/dev/".
- result the new result code for the line (one of the LSR_xflags).