Re: [Oberon] Re (2): Starting V4.
From: "Skulski, Wojciech" <skulski@pas.rochester.edu> Date: Thu, 4 Feb 2021 16:45:53 +0000
Do not forget the command line parameters which are also a form of configuration.
Acknowledged; but must the user execute them interactively at each boot up? Can commands be executed automatically when the system boots? Regards, ... P. L. -- Tel: +1 604 670 0140 Bcc: peter at easthope. ca
Do not forget the command line parameters which are also a form of configuration.
Acknowledged; but must the user execute them interactively at each boot up? Can commands be executed automatically when the system boots?
Under Windows, yes. The command line is put into a field in the desktop icon. It is executed when you double click on the icon. In order to change the parameters, right click on the Windows icon and select Properties. You can then change the command line. The example is attached. It starts V4 in a reduced window size. Note that resizing this window after it has started is not supported, as far as I know. If you want to use a reduced size, you need to start V4 with that size. Also note that the small window size leads to cutting some of the text in System.Tool, because wrapping around is not provided if the text line is longer than the width of the viewer. Horizontal scrolling is not provided either. It is a minor flaw, but worth noticing if you want to use a small V4 window size. W.
Unfortunately, PO2013 does not foresee an „automation“ hook in the code. Could be added but is normally not needed. However, you can automate things yourself by editing System.Mod, adding commands to the procedure OpenViewers and compiling System.Mod Let‘s assume you want to automate eg the command MyPalette.InitColors. Whether you write this command in a special „automatization“ configuration textfile with something like Task1 = MyPalette.InitColors or you add directly to the procedure System.OpenViewers the line Oberon.Call(“MyPalette.InitColors“, d); is effort-wise more or less the same. It is strange that the „configuration file“ thingy is something people seem to prefer although there are other ways to do it. br, Jörg
Am 04.02.2021 um 18:21 schrieb peter@easthope.ca:
From: "Skulski, Wojciech" <skulski@pas.rochester.edu> Date: Thu, 4 Feb 2021 16:45:53 +0000
Do not forget the command line parameters which are also a form of configuration.
Acknowledged; but must the user execute them interactively at each boot up? Can commands be executed automatically when the system boots?
Regards, ... P. L.
-- Tel: +1 604 670 0140 Bcc: peter at easthope. ca
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
Peter I had a look at the code of System.Mod in Linux V4 1.7.02. There, I find an automation/configuration hook in OpenViewers: It tries to load the module „Configuration“. It is expected that the module body does all things you want to automate/configure additionally during startup. If the module Configuration is not found, the text file System.Tool is opened instead. br Jörg
Am 05.02.2021 um 10:11 schrieb Jörg <joerg.straube@iaeth.ch>:
Unfortunately, PO2013 does not foresee an „automation“ hook in the code. Could be added but is normally not needed. However, you can automate things yourself by editing System.Mod, adding commands to the procedure OpenViewers and compiling System.Mod
Let‘s assume you want to automate eg the command MyPalette.InitColors. Whether you write this command in a special „automatization“ configuration textfile with something like Task1 = MyPalette.InitColors or you add directly to the procedure System.OpenViewers the line Oberon.Call(“MyPalette.InitColors“, d);
is effort-wise more or less the same. It is strange that the „configuration file“ thingy is something people seem to prefer although there are other ways to do it.
br, Jörg
Am 04.02.2021 um 18:21 schrieb peter@easthope.ca:
From: "Skulski, Wojciech" <skulski@pas.rochester.edu> Date: Thu, 4 Feb 2021 16:45:53 +0000
Do not forget the command line parameters which are also a form of configuration.
Acknowledged; but must the user execute them interactively at each boot up? Can commands be executed automatically when the system boots?
Regards, ... P. L.
-- Tel: +1 604 670 0140 Bcc: peter at easthope. ca
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
participants (3)
-
Jörg -
peter@easthope.ca -
Skulski, Wojciech