I agree that the handling of \b is not that strange, once one agrees on what \b actually means, i.e. "go back one character" and not "delete previous character". The fact that R GUI on Mac and Windows interprets/renders it differently shows that normality and strangeness is quite relative though.
To make my previous response clearer, I was just wondering if the printing of R prompt character ">" after the evaluation of an expression could detect trailing \b from cat in stdout/stderr and shift its position so that it is displayed after the last printed character. For example cat("abc\b\b\b") would give abc> and not a> c But this is: 0) Again platform, front-end dependent; 1) maybe not be possible (e.g., can we actually move forward without printing a character that would erase the previous output?) 2) maybe not even desirable; 3) certainly not worth the effort anyway! I guess we can happily close this thread :D Many thanks. Bests, Renaud ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel