Added RTL text output to CLI and GUI versions