[Rd] Ctrl-C at the Rterm prompt is remembered (unless pressing ENTER).

From: Henrik Bengtsson <hb_at_biostat.ucsf.edu>
Date: Thu, 21 Jun 2012 21:45:32 -0700


Hi,

there is a minor glitch with Ctrl-C on Windows:

  1. Start Rterm.exe
  2. Press Ctrl-C (without ENTER afterwards) to generate a user interrupt signal.
  3. Type Sys.sleep(1e6) + ENTER.
  4. The user interrupt in Step 2 causes Sys.sleep() in Step 3 to be interrupted.

I can reproduce this behavior on Windows 7 64-bit and 'Rterm.exe' with R v2.13.0 (2011-04-13), v2.15.0 Patched (2012-05-26 r59447), and Devel
(2012-06-20 r59586).

It occurs neither with 'R' on OSX and R v2.15.0 (2012-03-30) nor with 'R' on Linux and R v2.15.0 Patched (2012-05-01 r59304). In those cases, pressing Ctrl-C also advances the prompt (just as if Ctrl-C was followed by an ENTER). This is not the case with Rterm on Windows, where pressing Ctrl-C does not advance the prompt. However, pressing Ctrl-C and then ENTER, gives an empty line between the two prompts
(just as if Ctrl-C was followed by an ENTER that "didn't get
through").

/Henrik

PS. I am aware of the recent Bug/Fix #14948 [https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=14948].



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Fri 22 Jun 2012 - 04:48:40 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 22 Jun 2012 - 19:50:30 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive