command line applications

hi i'm just writing some simple applications in bash to make uni life a bit easier :wink:

but occationally while i'm in my application, someone might send me a pesky message or something and it breaks my command string into two parts or whatever.
is there a command or code to open a terminal with a isolated command line?

cheers

Perhaps try: mesg n

hmmm that doesn't help me... i don't wana stop the messages , i just don't want them to interupt my command line