Comments (8)
Great!
Does Logo emit any extra lines? I don't like to include logo.sh
.
from quine-relay.
Yes, unfortunately, it adds these two lines at the end:
Thank you for using Logo.
Have a nice day.
I can see if I can change the Makefile so that logo.sh isn't needed.
from quine-relay.
This should work
logo < QR.logo | head -n-2 > QR.lua
LOGO="sh -c 'logo | head -n-2' <"
exec "$LOGO QR.logo > QR.lua"
function ucblogo { sh -c "logo < $1" | head -n-2; }
ucblogo QR.logo > QR.lua
Thanks for other packages!
from quine-relay.
I think that ucblogo prints the message only when the source code is read from stdin.
Did you try to just invoke it with a filename:
logo QR.logo
instead of <$1 logo
?
from quine-relay.
This version always starts REPL and prints the message after bye
. @xyproto cleverly passes source code to stdin.
$ logo
? bye
Thank you for using Logo.
Have a nice day.
from quine-relay.
Which version is used? I think that AUR provides ucblogo-6.0 (as far as I read the package information) and the version actually handles a file input correctly:
$ wget http://www.cs.berkeley.edu/~bh/downloads/ucblogo.tar.gz
$ tar xzf ucblogo.tar.gz
$ cd ucblogo-6.0/
$ ./configure
$ make
$ cat ~/t.logo
PRINT "Hello
BYE
$ ./logo ~/t.logo
Hello
$
coms.c
of ucblogo prints the message only when loadstream == stdin
.
NODE *lbye(NODE *args) {
...
if (ufun != NIL || loadstream != stdin) exit(0);
...
ndprintf(stdout, "%t\n", message_texts[THANK_YOU]);
ndprintf(stdout, "%t\n", message_texts[NICE_DAY]);
from quine-relay.
/usr/bin/ld: cannot find -ltermcap
After installing aur/termcap
term.o: In function `lcleartext':
/home/piotr/Desktop/src/ucblogo-6.0/term.c:234: undefined reference to `tgoto'
term.o: In function `lsetcursor':
/home/piotr/Desktop/src/ucblogo-6.0/term.c:285: undefined reference to `tgoto'
from quine-relay.
curses provides tgoto
.
from quine-relay.
Related Issues (20)
- Guile Error HOT 2
- Thue.rb HOT 3
- What is your Daily Routine?
- Include TεX in the loop HOT 2
- god is dead and we killed him with quines HOT 4
- dhall error HOT 1
- Language request Q. Was: Q# (quantum programming language) or other representing letter Q, e.g. Arabic Qualb (قلب) HOT 3
- It's not making the vendor dir. HOT 4
- HOW HOT 2
- Consider using dotnet compiler for C# instead of outdated mono HOT 1
- Compilation for Shakespeare Failed HOT 1
- Why not have an issue that questions why or why not why or why not, "Why or why not should we have the repo?" HOT 2
- 3 Language Requests HOT 1
- Error when running through Docker HOT 11
- Language Request - Modula 2 HOT 2
- Emojis HOT 6
- Image missing fonts HOT 1
- Statistics of quine-relay HOT 1
- Package Install Issue HOT 1
- Vlang HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quine-relay.