[R-SIG-Mac] ANSI escape weirdness on M1 (libedit issue?)
Gábor Csárdi
c@@rd|@g@bor @end|ng |rom gm@||@com
Wed Nov 3 13:21:14 CET 2021
Anyone else noticed some weirdness with the arm build when the prompt
has ANSI escape codes?
E.g. in a terminal run this
options(prompt = "\033[1m> \033[0m")
and then at the new prompt type in some longer word and press CTRL+A.
The cursor does not go back to the beginning of the line, probably
because the width of the prompt is not calculated correctly by the
underlying system library.
readline is not listed at https://mac.r-project.org/libs-arm64/ while
it is listed among the intel libs. Does that mean that R uses libedit
on arm64? Is this an issue with libedit?
Thanks,
Gabor
More information about the R-SIG-Mac
mailing list