writeCodeAndReply

Writes the character coded by arg to channel, replying success, or failing on a closed channel.