Wow! This one works... I simply flush an array per each enter pressed.. and capture the last line by your method..
However, could you explain a little more what magic is inside the Glib::Idle?... I don't even know where to find the documentation... @@"