Added basic functionality to xsh_chat.c