[R] cat() and \r et al. escape sequences - are there more?
Rainer M Krug
Rainer at krugs.de
Thu Jan 22 14:32:02 CET 2015
Hi
I just discovered \r and \t
--8<---------------cut here---------------start------------->8---
> cat(LETTERS, "\n")
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
>
--8<---------------cut here---------------end--------------->8---
--8<---------------cut here---------------start------------->8---
> cat(LETTERS, "\r", letters, "\n")
a b c d e f g h i j k l m n o p q r s t u v w x y z
>
>--8<---------------cut here---------------end--------------->8---
and
\a as alert
\b as backspace
\f as form-feed
\n as newline
\r as carriage-return
\t as tab
\v as vertical-tab
are there more of these escape sequences?
Especially, Can I position the cursor at a specific column? I would like
to do this to show progress in an analysis done with mclapply() on
multiple cores and, preferably, display each core (7) at a fixed
position in a line.
Thanks,
Rainer
--
Rainer M. Krug
email: Rainer<at>krugs<dot>de
PGP: 0x0F52F982
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 494 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20150122/c209c699/attachment.bin>
More information about the R-help
mailing list