понедельник, 1 октября 2018 г., 16:32:21 UTC+3 пользователь DJL написал:
Thanks Alexey
That doesn't work.
I've tried putting startup.lg in several places (the install directory as well as the directory I want to work in) but it makes no difference.
I know it's somewhat dated (written for an old style DOS environment?), but it makes life hard if there is no way from inside the program to check which folder one is logged into and no way to change the CWD from there.
Have checked all the manuals but can't find anything there. Looks like that is not possible (which seems mad!).
If you have more tips I would be grateful to receive them.
Hi DL!
startup.lg file should be created in the default Windows User Documents folder (e.g. "c:\Users\Alexey\Documents\startup.lg" if the user name is Alexey).
And It is only possible place for the file in Windows.
I've checked things out on Windows 10 with UCBLOGO 6.0 running. All work well. If the explanation is still unclear for you, I can make screencast to show how-to set the things properly and provide you with the link on it.
I'd not to say "an old style DOS environment", I'd prefer to say in this case "unix-like approach", that is still powerful, effective and actual :-)
So, there are several way to manage workspace in UCBLOGO from the command prompt.
One of the alternative way is not to use LOAD and SAVE at all, but maintain a workspace file yourself, controlling the order in which definitions appear, maintaining comments in the file, and so on. It is possible with the EDITFILE command. Here is the
syntax for the command:
editfile "c://logo//hello.lg
I've assume that "c:\logo" folder is already created. Please note, that the argument to EDITFILE is represents a path to a file for editing, so file will be created as "c:\logo\hello.lg".
To avoid typing long filenames you can do something like this:
to e :file
editfile word "c://logo// :file
end
After that, you can edit files just type:
e "hello.lg
The effect of the command is that you creating the hello.lg file in c:\logo directory. The same command serves for further editing the file.
The E procedure definition may be putted into startup.lg file to load automatically in the interpreter.
I hope that the tips will be useful for you.
and I wish all the best with the UCBLOGO exploration!
Alexey.
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)