> How can you encode a ENTER? In case of space: \s, what about ENTER?

If you mean "carriage return", it is '\r'

-- 
Ronald Fischer <ronald.fischer / venyon.com>
Phone: +49-89-452133-162