Iago Giné Vázquez
2024-Feb-09 20:39 UTC
[R] Avoiding Delete key function as 'Quit R' in Rterm when there are no characters in cursor line
Duncan, do you think it's worth to comment this in R-devel list? Iago ________________________________ De: CALUM POLWART <polc1410 at gmail.com> Enviat el: divendres, 9 de febrer de 2024 18:28 Per a: Duncan Murdoch <murdoch.duncan at gmail.com> A/c: Iago Gin? V?zquez <iago.gine at sjd.es>; r-help at r-project.org <r-help at 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 at gmail.com<mailto:murdoch.duncan at 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 at gmail.com<mailto:murdoch.duncan at gmail.com>> > *Enviat el:* divendres, 9 de febrer de 2024 13:50 > *Per a:* Iago Gin? V?zquez <iago.gine at sjd.es<mailto:iago.gine at 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 at r-project.org<mailto:R-help at 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]]
Tomas Kalibera
2024-Feb-12 10:18 UTC
[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 at gmail.com> > Enviat el: divendres, 9 de febrer de 2024 18:28 > Per a: Duncan Murdoch <murdoch.duncan at gmail.com> > A/c: Iago Gin? V?zquez <iago.gine at sjd.es>; r-help at r-project.org <r-help at 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 at gmail.com<mailto:murdoch.duncan at 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 at gmail.com<mailto:murdoch.duncan at gmail.com>> >> *Enviat el:* divendres, 9 de febrer de 2024 13:50 >> *Per a:* Iago Gin? V?zquez <iago.gine at sjd.es<mailto:iago.gine at 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 at r-project.org<mailto:R-help at 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 at 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.
Reasonably Related Threads
- Avoiding Delete key function as 'Quit R' in Rterm when there are no characters in cursor line
- Avoiding Delete key function as 'Quit R' in Rterm when there are no characters in cursor line
- Avoiding Delete key function as 'Quit R' in Rterm when there are no characters in cursor line
- Avoiding Delete key function as 'Quit R' in Rterm when there are no characters in cursor line
- FR: Customize background colour of row and column headers for the View output