🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.transputer
Article #1220

Re: NEW LINE CHARACTER IN OCCAM

#1220
From: Nigel Holder
Date: Tue, 13 Oct 1992 12:37
36 lines
1621 bytes
In article <1992Oct13.092832.16952@westminster.ac.uk> tyzec@westminster.ac.uk (Andy Macfarlane) writes:
>
>I am using a transputer simulator on a Sun Workstation. 
>
>Any ideas of what the new line symbol is eg \n in C. I suspect
>it will be in the same for as say spk.ok, but I can't find it 
>anywhere
>
>Andrew MacFarlane
>University Of Westminster


I am not quite sure on where and how you want to generate a newline
sequence, but here are two ways:


occam 2 Reference Manual (Prentice Hall, supplied with INMOS occam toolsets)
pp 92 states:

*c  *C  Carriage return
*n  *N  Newline

may be used in strings or as character constants.


However, an alternative method would be to use so.write.nl which worries about
how to send a newline sequence to the screen (or the other so.*.nl variants).


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Nigel Holder, Software Group, INMOS Ltd		Tel +44 454 616616
1000 Aztec West					Fax +44 454 617910
Almondsbury					UK: nigel@inmos.co.uk
Bristol BS12 4SQ, UK.				US: nigel@inmos.com

		"Lost in time like tears in rain.  Time to die"    Blade Runner
Technical Details
Message-ID: <1992Oct13.123711.19143@titan.inmos.co.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!inmos!titan.inmos.co.uk!news
References: <1992Oct13.092832.16952@westminster.ac.uk>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!inmos!titan.inmos.co.uk!news
From: nigel@dodo.inmos.co.uk (Nigel Holder)
Newsgroups: comp.sys.transputer
Subject: Re: NEW LINE CHARACTER IN OCCAM
Message-ID: <1992Oct13.123711.19143@titan.inmos.co.uk>
Date: 13 Oct 92 12:37:11 GMT
References: <1992Oct13.092832.16952@westminster.ac.uk>
Sender: news@titan.inmos.co.uk
Reply-To: nigel@inmos.co.uk (Nigel Holder)
Organization: INMOS Limited, Bristol, UK.
Lines: 36