PO2013 - System.CloseTrack / System.ExtendDisplay
The drawback of the commands, and of Text User Interface (TUI) in general, is that the commands need be present on every screen.
The commands System.NextDisplay and System.PrevDisplay are placed in the *same* spot in System.Tool in *every* virtual display, i.e. every screen. So if the user doesn’t change the height of the log viewer (which is shared among all displays), one can *rapidly* rotate forward and backwards through all currently open virtual screens with ease. It’s a hack to make it work with a TUI such as Oberon. A keyboard combination may be worth considering, for example -> (arrow right) and <- (arrow left) or some other key combination (ctrl-n, ctrl-b) like in emacs. I have also played with placing little arrows in the title bar of the *log* viewer (which usually stays at the same spot on the screen, no matter the display one is in) or even adding a permanently present top or bottom level menu bar as in macOS or Cedar.
It is tempting to have a configuration file, even though I can appreciate Joerg's remark that such a file can be in fact a module. A config file can lead to a Unix disease that one never knows what the computer is doing without digging into and deciphering .rc files which seem to be everywhere. It is a serious illness in my opinion, though "seasoned programmers" seem to appreciate it very much. I like Andreas' idea of adding a system-wide menu bar. Another such menu bar is implicitly present on my keyboard, though not on screen, in a form of F-keys. These can be assigned to various common tasks. I used to place a strip of paper above the F-keys in the past. For example, I am now used to the F2 which creates a shallow copy of a viewer in BlackBox. I am also not sure if I would call this mechanism a "config file". I would prefer talking of "macro facility" of the sort HOT-KEY = "string". For example: CTRL-K = "Compiler.Compile list-of-files". I know that this idea opens a Pandora box, because the Compiler takes its input from a Text rather than from a string. So it is not as obvious as it might look to me. Wojtek ________________________________________ From: Oberon [oberon-bounces@lists.inf.ethz.ch] on behalf of Andreas Pirklbauer [andreas_pirklbauer@yahoo.com] Sent: Friday, May 3, 2019 6:45 AM To: ETH Oberon and related systems Subject: [Oberon] PO2013 - System.CloseTrack / System.ExtendDisplay
The drawback of the commands, and of Text User Interface (TUI) in general, is that the commands need be present on every screen.
The commands System.NextDisplay and System.PrevDisplay are placed in the *same* spot in System.Tool in *every* virtual display, i.e. every screen. So if the user doesn’t change the height of the log viewer (which is shared among all displays), one can *rapidly* rotate forward and backwards through all currently open virtual screens with ease. It’s a hack to make it work with a TUI such as Oberon. A keyboard combination may be worth considering, for example -> (arrow right) and <- (arrow left) or some other key combination (ctrl-n, ctrl-b) like in emacs. I have also played with placing little arrows in the title bar of the *log* viewer (which usually stays at the same spot on the screen, no matter the display one is in) or even adding a permanently present top or bottom level menu bar as in macOS or Cedar. -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.inf.ethz.ch_mailman_listinfo_oberon&d=DwIGaQ&c=kbmfwr1Yojg42sGEpaQh5ofMHBeTl9EI2eaqQZhHbOU&r=uUiA_zLpwaGJIlq-_BM9w1wVOuyqPwHi3XzJRa-ybV0&m=w6DjEocHdBvmktVIGA_zDw_TCo8yWqqbs_onEJxd7uU&s=RyEhdTSU1kz4RIxxbE1KaB25fUJ82ruFrkaI7y0bhH4&e=
Hi,
It is tempting to have a configuration file, even though I can appreciate Joerg's remark that such a file can be in fact a module. A config file can lead to a Unix disease that one never knows what the computer is doing without digging into and deciphering .rc files which seem to be everywhere. It is a serious illness in my opinion, though "seasoned programmers" seem to appreciate it very much.
Well as a seasoned programmer I put together this little text a few years ago with regard to my opinion on configuration file: https://inodes.ch/doc/konfiguration.pdf Unfortunately in German, but nowadays you can pass it to a translation engine of your choice if you do not understand the original language:-) In short I argue, that there might be just two main reason that really force you to use configuration files. Mandated: Either because someone that shall not have access to the source needs to make some changes or in unfortunate environments where making changes to a configuration file is made much easier than changes to source. Operational: When a software is so huge, that restarting is a non-option as it takes too much time, yet some stuff needs to be tweakable over time. Other than that I am on the same page as Jörg. Also because all too often I have seen "configuration files" growing over time into their own programming language. First it is maybe just Ctrl-C: System.CloseScreen Then requirements change because you e.g. write a ShellViewer giving access to your Linux box and you realise that you need to pass Ctrl-C unchanged in this circumstance, so the configuration file becomes something like [ShellViewer] Ctrl-C unmapped [*] Ctrl-C: System.CloseScreen And now you have already invented an awkward IF ... THEN ... ELSE ... END. This can go on over time until your new language is as complex as Oberon without having its beauty. claudio -- Claudio Nieder, Ruhestrasse 7, CH-8045 Zürich, Tel +4179 357 6743, www.claudio.ch
participants (3)
-
Andreas Pirklbauer -
Claudio Nieder -
Skulski, Wojciech