🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text
Article #1758

Re: How do you display a back-slash in nroff?

#1758
From: Tony L. Hansen
Date: Sat, 18 Aug 1990 05:50
20 lines
1545 bytes
< From: brown@vidiot.UUCP (Vidiot)
< In article <1990Aug7.190300.8450@investor.pgh.pa.us> rbp@investor.pgh.pa.us (Bob Peirce #305) writes:
<< I have read the manual.  I have experimented with .ec and with escaping
<< one back-slash with one to many with no success. Is there a way?

< Outside of a macro, ie, in the text file, it is just like you did:  \\
< While inside of a macro it is: \\\\  and double that for each macro
< defined inside of a macro.  It may actually work as \\ inside of a macro,
< since you are not fetching values from a variable.

< Without doing anything special to nroff when it starts, the \\ should
< print a single \ without a problem.  I use it all the time in troff test.

There's never a need to use multiple backslashes to get a backslash to
print. Just use \e to print the "current escape character", which is always
the backslash unless the .ec command is issued.

					Tony Hansen
				att!pegasus!hansen, attmail!tony
				    hansen@pegasus.att.com
Technical Details
Message-ID: <4978@pegasus.ATT.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!tut.cis.ohio-state.edu!att!dptg!pegasus!hansen
References: <1990Aug7.190300.8450@investor.pgh.pa.us> <662@vidiot.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!tut.cis.ohio-state.edu!att!dptg!pegasus!hansen
From: hansen@pegasus.ATT.COM (Tony L. Hansen)
Newsgroups: comp.text
Subject: Re: How do you display a back-slash in nroff?
Summary: use \e to display a backslash
Keywords: nroff, troff
Message-ID: <4978@pegasus.ATT.COM>
Date: 18 Aug 90 05:50:06 GMT
References: <1990Aug7.190300.8450@investor.pgh.pa.us> <662@vidiot.UUCP>
Reply-To: hansen@pegasus.ATT.COM (Tony L. Hansen)
Organization: AT&T Bell Labs NJ USA
Lines: 20