Update ui.lua

Add function UI.cprint for using this global.
Also cprint support now more than one line.