Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!wugate!uunet!crdgw1!brspyr1!bobn From: bobn@brspyr1.BRS.Com (Bob Nieman) Newsgroups: comp.lang.rexx Subject: Re: control characters Message-ID: <6511@brspyr1.BRS.Com> Date: 13 Nov 89 16:34:22 GMT References: <89313.160443SPB109@PSUVM.BITNET> Organization: BRS Information Technologies Lines: 23 In article <89313.160443SPB109@PSUVM.BITNET>, SPB109@PSUVM.BITNET writes: > Hi. How do you print out controll characters in rexx? C allows you > to use the '\' character. Pascal uses CHR(). What does rexx use? > I've tried backslashes in SAY'' but to no avail. The reason I'm asking > is of purely diabolical interest: If it is possible to print out a backspace > then when you send a message to a user, you can back up to you're user id > and overwrite it. (pretty neat, huh?) Any Ideas or Suggestions would > absolutely stun me. (Who reads this stuff, much less responds?) > oh, well. -They call me SpAcE caSe. > (for reasons somewhat evident) You might want to try using the say instruction with the HEX value of the control character you want to output. This seems to work for the newline character X'15'. Give it a try with a backspace character. /* Sample exec */ nl = '15'x say 'First Line' nl nl nl'Next Line' -- | Bob Nieman (bobn@brspyr1) UUCP: ihnp4!dartvax!brspyr1!bobn | | Phone: (518) 783-1161 | |------------------------------------------------------------------------|