Howdy! I have a problem that's similar to one discussed earlier on the list: When not in xterm all the backspace and cursor-movements and stuff are working well. Only when I start R in an xterm window backspace appears as ^H and so on. What can I do? Ragnar -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>>>>> "RB" == Ragnar Beer <rbeer at uni-goettingen.de> writes:RB> Howdy! I have a problem that's similar to one discussed RB> earlier on the list: When not in xterm all the backspace and RB> cursor-movements and stuff are working well. Only when I start RB> R in an xterm window backspace appears as ^H and so on. What RB> can I do? So where do you run it when not in an xterm? I suspect it's a terminfo/termcaps (terminal behavior, and I can never recall which is being used) problem, not an R problem. You might try resetting the terminal prior to running R, i.e. TERM=vt100 ; export TERM from sh/bash/ksh, or setenv TERM vt100 from csh/tcsh etc. These are suggestions, not guaranteed to work. You probably want to use env to check what your initial TERM setting is. best, -tony -- A.J. Rossini Rsrch. Asst. Prof. of Biostatistics UW Biostat/Center for AIDS Research rossini at u.washington.edu FHCRC/SCHARP/HIV Vaccine Trials Net rossini at scharp.org -------- (friday is unknown) -------- FHCRC: M--W : 206-667-7025 (fax=4812)|Voicemail is pretty sketchy CFAR: ?? : 206-731-3647 (fax=3694)|Email is far better than phone UW: Th : 206-543-1044 (fax=3286)|Change last 4 digits of phone to FAX -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Wed, 28 Mar 2001, Ragnar Beer wrote:> Howdy! > > I have a problem that's similar to one discussed earlier on the list: > When not in xterm all the backspace and cursor-movements and stuff > are working well. Only when I start R in an xterm window backspace > appears as ^H and so on. What can I do?It is well known that backspace and delete are in general screwed up under unix, especially under X, and that special efforts have to be made to get them as Mac and windows interpret them: delete = delete to right, backspace=delete to left. One reason is that many unix guys don't accept that the backspace and delete keys should have different behaviours. These two keys didn't exist before PCs, and so unix didn't deal with this issue in the early days. Anne Baretta wrote a nice page describing some fixes. Anne's page seems to be gone from the net; a copy is here: http://turquoise.cs.ucr.edu/keyboard2/keyboard.html I will say that under RedHat version 6.2 and greater backspace and delete are OK in console and in xterm under X. Anne's ideas were incorporated into Debian as well. I don't know what unix you're using, you don't say. I know that the most recent version of FreeBSD has screwed up keys. If you are using linux, I would suggest you switch to a distribution with unbroken keys like RedHat or Debian. Else read Anne's page and do the fixes. Bill -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> From owner-r-help at stat.math.ethz.ch Wed Mar 28 14:35 BST 2001 > X-Authentication-Warning: localhost.localdomain: wsimpson owned process doing-bs> Date: Wed, 28 Mar 2001 14:34:28 +0100 (BST) > From: Bill Simpson <wsi at gcal.ac.uk> > To: r-help at stat.math.ethz.ch > Subject: Re: [R] R and xterm > X-Status: > X-Keywords: > X-UID: 2631 > > On Wed, 28 Mar 2001, Ragnar Beer wrote: > > > Howdy! > > > > I have a problem that's similar to one discussed earlier on the list: > > When not in xterm all the backspace and cursor-movements and stuff > > are working well. Only when I start R in an xterm window backspace > > appears as ^H and so on. What can I do?> It is well known that backspace and delete are in general screwed up under > unix, especially under X, and that special efforts have to be made to get > them as Mac and windows interpret them: delete = delete to > right, backspace=delete to left.Eh? At least on UNIX(R) systems they work well: I have never seen a `screwed up' Solaris system, and ever since 1987 my systems have worked that way.> One reason is that many unix guys don't accept that the backspace and > delete keys should have different behaviours. These two keys didn't exist > before PCs, and so unix didn't deal with this issue in the early days.Again, I have never seen this on a real UNIX.> Anne Baretta wrote a nice page describing some fixes. > Anne's page seems to be gone from the net; a copy is here: > http://turquoise.cs.ucr.edu/keyboard2/keyboard.html > > I will say that under RedHat version 6.2 and greater backspace and delete > are OK in console and in xterm under X. Anne's ideas were incorporatedUm, that's a Linux system, not a UNIX one.> into Debian as well. I don't know what unix you're using, you don't say. I > know that the most recent version of FreeBSD has screwed up keys. If you > are using linux, I would suggest you switch to a distribution with > unbroken keys like RedHat or Debian. Else read Anne's page and do the > fixes.Well, let's not confuse the copies with the trademarked genuine article. Quick hint: stty -sane often helps confused terminals. -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> >I have a problem that's similar to one discussed earlier on the list: > >When not in xterm all the backspace and cursor-movements and stuff > > are working well. Only when I start R in an xterm window backspace > > appears as ^H and so on. What can I do?In my solaris UNIX, the following can be used: stty erase ^H #sets erase to "backspace" stty erase ^? #sets erase to "del" You can put this into your .login file so that it runs automatically when you open an xterm Regards, Dermot. ************************************************************** Dermot MacSweeney NMRC, Email: dsweeney at nmrc.ucc.ie Lee Maltings, Tel: +353 21 4904178 Prospect Row, Fax: +353 21 4270271 Cork, WWW: http://nmrc.ucc.ie Ireland ************************************************************** -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Thanks for all your answers! I could solve the problem by updating the OS. Now everything works as it should :) Ragnar>Howdy! > >I have a problem that's similar to one discussed earlier on the >list: When not in xterm all the backspace and cursor-movements and >stuff are working well. Only when I start R in an xterm window >backspace appears as ^H and so on. What can I do? > >Ragnar >-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- >r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html >Send "info", "help", or "[un]subscribe" >(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch >_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._