In an Xterm(271) (under Ubuntu 12.04) this Octave script does not print coloured strings (e.g. cprintf(red,%s\n,test), in an executable Octave script). It works fine in a Xterm(297) on a different system (Ubuntu 14.04). I fail to see what is the right parameter/value combination to make it work (many relate to color and one to scape sequences, which cprintf is using), and can't find a way to figure out how is the Xterm(297) configured.
xterm not displaying color when echoing a coloured string
colors;xterm;escape characters