[R] Avoiding Delete key function as 'Quit R' in Rterm when there are no characters in cursor line
Iago Giné Vázquez
|@go@g|ne @end|ng |rom @jd@e@
Mon Feb 12 11:24:05 CET 2024
Thanks to both, Duncan and Thomas.
Best,
Iago
________________________________
De: Tomas Kalibera <tomas.kalibera using gmail.com>
Enviat el: dilluns, 12 de febrer de 2024 11:18
Per a: Iago Giné Vázquez <iago.gine using sjd.es>; CALUM POLWART <polc1410 using gmail.com>; Duncan Murdoch <murdoch.duncan using gmail.com>
A/c: r-help using r-project.org <r-help using r-project.org>
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 <polc1410 using gmail.com>
> Enviat el: divendres, 9 de febrer de 2024 18:28
> Per a: Duncan Murdoch <murdoch.duncan using gmail.com>
> A/c: Iago Giné Vázquez <iago.gine using sjd.es>; r-help using r-project.org <r-help using r-project.org>
> 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, <murdoch.duncan using gmail.com<mailto:murdoch.duncan using gmail.com>> 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 <murdoch.duncan using gmail.com<mailto:murdoch.duncan using gmail.com>>
>> *Enviat el:* divendres, 9 de febrer de 2024 13:50
>> *Per a:* Iago Giné Vázquez <iago.gine using sjd.es<mailto:iago.gine using sjd.es>>
>> *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
>>
> ______________________________________________
> R-help using r-project.org<mailto:R-help using r-project.org> 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]]
>
> ______________________________________________
> R-help using r-project.org 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]]
More information about the R-help
mailing list