[Rd] ^C does not clear the command being typed immediately in Rterm.exe on Windows
SOEIRO Thomas
Thom@@@SOEIRO @end|ng |rom @p-hm@|r
Wed Dec 10 20:09:44 CET 2025
Hello,
In Rterm.exe on Windows, pressing ^C (Ctrl+C) does not clear *the command being typed* immediately.
It does only after pressing ENTER.
However, it does terminate *the current process* immediately (i.e. without pressing ENTER).
I observe the same behavior in R running from cmd.exe (not sure if it is different from Rterm.exe).
Other escape sequences (e.g. ^U, ^K, ^R, ^D...) work as expected (i.e. as they do on Linux).
Is it expected? Should it be reported to R Bugzilla?
FWIW, the use case is to clear (potentially malformed) multiline input.
^U and ^K works for single line input.
Am I missing something?
Thanks,
Thomas
sessionInfo()
# R version 4.4.0 (2024-04-24 ucrt)
# Platform: x86_64-w64-mingw32/x64
# Running under: Windows 11 x64 (build 22631)
#
# Matrix products: default
#
#
# locale:
# [1] LC_COLLATE=French_France.utf8 LC_CTYPE=French_France.utf8
# [3] LC_MONETARY=French_France.utf8 LC_NUMERIC=C
# [5] LC_TIME=French_France.utf8
#
# time zone: Europe/Paris
# tzcode source: internal
#
# attached base packages:
# [1] stats graphics grDevices utils datasets methods base
#
# loaded via a namespace (and not attached):
# [1] compiler_4.4.0
More information about the R-devel
mailing list