Thanks to both, Duncan and Thomas. Best, Iago
________________________________ De: Tomas Kalibera <[email protected]> Enviat el: dilluns, 12 de febrer de 2024 11:18 Per a: Iago Giné Vázquez <[email protected]>; CALUM POLWART <[email protected]>; Duncan Murdoch <[email protected]> A/c: [email protected] <[email protected]> Tema: Re: [R] Avoiding Delete key function as 'Quit R' in Rterm when there are no characters in cursor line On 2/9/24 21:39, Iago Giné Vázquez wrote: > Duncan, do you think it's worth to comment this in R-devel list? Duncan filed a bug report via R bugzilla (thanks). There is no way to disable this functionality and it has existed for very long time, I tested that at least in R 3.0. Optionally ending the session was I believe intentional with Ctrl+D, when the input is empty, and it is also how Unix terminals work. But ending the session with DEL was probably an implementation compromise and I've changed that in R-devel. Thanks for the report. More implementation details in the bugzilla report: https://bugs.r-project.org/show_bug.cgi?id=18666 Best Tomas > Iago > > ________________________________ > De: CALUM POLWART <[email protected]> > Enviat el: divendres, 9 de febrer de 2024 18:28 > Per a: Duncan Murdoch <[email protected]> > A/c: Iago Giné Vázquez <[email protected]>; [email protected] > <[email protected]> > Tema: Re: [R] Avoiding Delete key function as 'Quit R' in Rterm when there > are no characters in cursor line > > I don't use term, but I've just tested it and this is reproducable. > > Is it a bug? Not sure. If you hit c after getting the message it will cancel > the q() request. > > > On Fri, 9 Feb 2024, 17:21 Duncan Murdoch, > <[email protected]<mailto:[email protected]>> wrote: > That looks to me like a bug, but I don't use Windows any more, so I > won't offer to try to fix it for you. In fact I don't think Rterm has > many users at all: most Windows users probably use RStudio or one of > the other graphical front ends (Visual Studio, Emacs, Rgui, etc.) > > So maybe you can track down the issue, or someone else will try. Or > maybe you'll just have to avoid triggering the bug (if it really is one). > > Duncan Murdoch > > On 09/02/2024 10:03 a.m., Iago Giné Vázquez wrote: >> Yes, indeed, I am talking about Rterm in Windows. >> >> Iago >> ------------------------------------------------------------------------ >> *De:* Duncan Murdoch >> <[email protected]<mailto:[email protected]>> >> *Enviat el:* divendres, 9 de febrer de 2024 13:50 >> *Per a:* Iago Giné Vázquez <[email protected]<mailto:[email protected]>> >> *Tema:* Re: [R] Avoiding Delete key function as 'Quit R' in Rterm when >> there are no characters in cursor line >> On 09/02/2024 6:25 a.m., Iago Giné Vázquez wrote: >>> Hi all, >>> >>> I cite from README.Rterm >>> >>> ^D, DEL : Delete the character under the cursor. >>> >>> That is the general behaviour, but when there is no character (neither >>> under the cursor nor at its left), pressing the Delete key suggests closing >>> the R terminal. Is there any (configurable) way to avoid this behaviour? >> Are you talking about rterm in Windows, or which front end? >> >> Duncan Murdoch >> > ______________________________________________ > [email protected]<mailto:[email protected]> mailing list -- To > UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > > [[alternative HTML version deleted]] > > ______________________________________________ > [email protected] mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. [[alternative HTML version deleted]] ______________________________________________ [email protected] mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

