Hi all, Have you ever felt the desire to use the arrow keys while editing text or playing ObTris (Oberon Tetris) in Project Oberon 2013? Or wondered how to make changes to the keyboard code translation table in Input.Mod? I did, and I noticed that making such changes is not entirely trivial. So after fiddling with this for some time and succeeding to make most of the tweaks that I needed I wrote a small Tutorial on this. You can find it here: https://github.com/hansklav/Oberon-keyboard-tweaks Hoping it will useful to others, With regards, Hans Klaver
Thank you Hans Klaver for your Tutorial. I plan to use it as a training tool for my students when learning to work through Project Oberon, and the initial lack of cursor keys and fixed upper case are great starting points to use as a guide to the inner workings. Best regards, Prof. Pablo Cayuela Argentina On Sun, 22 Oct 2023 at 11:30, Hans Klaver <hklaver@dds.nl> wrote:
Hi all,
Have you ever felt the desire to use the arrow keys while editing text or playing ObTris (Oberon Tetris) in Project Oberon 2013? Or wondered how to make changes to the keyboard code translation table in Input.Mod?
I did, and I noticed that making such changes is not entirely trivial. So after fiddling with this for some time and succeeding to make most of the tweaks that I needed I wrote a small Tutorial on this.
You can find it here: https://github.com/hansklav/Oberon-keyboard-tweaks
Hoping it will useful to others,
With regards,
Hans Klaver -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
Dear Prof. Cayuela, Thank you for your message. If you or your students encounter any lack of clarity in my text or other problem, please let me know. With regards, Hans Klaver
Op 24 okt. 2023, om 01:20 heeft Pablo Cayuela <pablo.cayuela@gmail.com> het volgende geschreven:
Thank you Hans Klaver for your Tutorial. I plan to use it as a training tool for my students when learning to work through Project Oberon, and the initial lack of cursor keys and fixed upper case are great starting points to use as a guide to the inner workings.
Best regards, Prof. Pablo Cayuela Argentina
On Sun, 22 Oct 2023 at 11:30, Hans Klaver <hklaver@dds.nl <mailto:hklaver@dds.nl>> wrote: Hi all,
Have you ever felt the desire to use the arrow keys while editing text or playing ObTris (Oberon Tetris) in Project Oberon 2013? Or wondered how to make changes to the keyboard code translation table in Input.Mod?
I did, and I noticed that making such changes is not entirely trivial. So after fiddling with this for some time and succeeding to make most of the tweaks that I needed I wrote a small Tutorial on this.
You can find it here: https://github.com/hansklav/Oberon-keyboard-tweaks <https://github.com/hansklav/Oberon-keyboard-tweaks>
Hoping it will useful to others,
With regards,
Hans Klaver -- Oberon@lists.inf.ethz.ch <mailto:Oberon@lists.inf.ethz.ch> mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon <https://lists.inf.ethz.ch/mailman/listinfo/oberon> -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
Hans I saw you modified my TextFrames.Write. The underlying logic of my code is that Input.Read returns four special Oberon keys called “left”, “right”, “up”, “down” whatever their HW scancodes are. If you want Ctrl-B, Ctrl-F, Ctrl-P and Ctrl-N to behave like those 4 cursor keys, try mapping their scancodes to the 4 keys and leave TextFrame.Write untouched. However, it might be you want Ctrl-B, Ctrl-F… to behave differently in Frames that are not TextFrames. br Jörg Von: Oberon <oberon-bounces@lists.inf.ethz.ch> im Auftrag von Hans Klaver <hklaver@dds.nl> Datum: Dienstag, 24. Oktober 2023 um 14:17 An: ETH Oberon and related systems <oberon@lists.inf.ethz.ch> Betreff: Re: [Oberon] Oberon keyboard tweaks Dear Prof. Cayuela, Thank you for your message. If you or your students encounter any lack of clarity in my text or other problem, please let me know. With regards, Hans Klaver Op 24 okt. 2023, om 01:20 heeft Pablo Cayuela <pablo.cayuela@gmail.com<mailto:pablo.cayuela@gmail.com>> het volgende geschreven: Thank you Hans Klaver for your Tutorial. I plan to use it as a training tool for my students when learning to work through Project Oberon, and the initial lack of cursor keys and fixed upper case are great starting points to use as a guide to the inner workings. Best regards, Prof. Pablo Cayuela Argentina On Sun, 22 Oct 2023 at 11:30, Hans Klaver <hklaver@dds.nl<mailto:hklaver@dds.nl>> wrote: Hi all, Have you ever felt the desire to use the arrow keys while editing text or playing ObTris (Oberon Tetris) in Project Oberon 2013? Or wondered how to make changes to the keyboard code translation table in Input.Mod? I did, and I noticed that making such changes is not entirely trivial. So after fiddling with this for some time and succeeding to make most of the tweaks that I needed I wrote a small Tutorial on this. You can find it here: https://github.com/hansklav/Oberon-keyboard-tweaks Hoping it will useful to others, With regards, Hans Klaver -- Oberon@lists.inf.ethz.ch<mailto:Oberon@lists.inf.ethz.ch> mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon -- Oberon@lists.inf.ethz.ch<mailto:Oberon@lists.inf.ethz.ch> mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
Hi Jörg,
Hans
I saw you modified my TextFrames.Write.
The underlying logic of my code is that Input.Read returns four special Oberon keys called “left”, “right”, “up”, “down” whatever their HW scancodes are. If you want Ctrl-B, Ctrl-F, Ctrl-P and Ctrl-N to behave like those 4 cursor keys, try mapping their scancodes to the 4 keys and leave TextFrame.Write untouched. However, it might be you want Ctrl-B, Ctrl-F… to behave differently in Frames that are not TextFrames.
You are right, adding the ^B, ^F, ^P & ^N control keys to your extra lines for TextFrames.Write is redundant in my setup of the keyboard translation table in Input.Init. Thanks for mentioning it. Now I realize they are actually a leftover from my experiments to which ASCII-codes to map the scancodes of the arrow keys in the table. As you can read I finally chose the ASCII-codes of these particular control keys, because especially ^B and ^F are traditionally used for left and right cursor movement (e.g. in many command line setups). I will remove them from your code in TextFrames.Write. In my mapping even then these control keys can still be used for the same cursor movements. By the way, I encountered your code for TextFrames.Write on Roel de Jonge's webpage for his macOS RISC emulator (which he abandoned for reasons unknown to me). The page can still be found on the Internet Archive: https://web.archive.org/web/20201229164332/http://www.reactive-instruments.e... Regards, Hans
Talking about keyboard software... Did you know that Niklaus Wirth used to be quite famous within certain hacker circles as a result of his work on keyboard/editor programs? While at Stanford in 1964-65 he "first suggested the idea of an EDIT key to set the 8th bit of an otherwise 7-bit ASCII character."(1) After his nickname there at that time these bits, used for "extra" shift keys such as the CONTROL and META shift key on the SAIL keyboard, were called "bucky bits". The term spread to MIT and Carnegie Mellon and later was used for bits associated with the SUPER, HYPER, TOP and GREEK keys of the Space Cadet Keyboard. Also the Alt key of the IBM PC clones and the Command and Option keys of the Macintosh use bucky bits. Even today on macOS in certain C framework header files dating from NeXT one can find lines such as: #define NX_WHICHMODMASK 0x0f /* bits out of keyBits for bucky bits */ Some people are lucky to have a star or planetoid named after them, but I guess for a computer scientist to have widely used bits named after him is more rewarding ;-) Regards, Hans ---- (1) http://www.catb.org/jargon/html/B/bucky-bits.html
On Sat, Oct 28, 2023 at 12:53 AM Hans Klaver <hklaver@dds.nl> wrote:
Some people are lucky to have a star or planetoid named after them, but I guess for a computer scientist to have widely used bits named after him is more rewarding ;-)
Thank you for the interesting info. Here is also some information about the asteroid which is named after him: https://ssd.jpl.nasa.gov/tools/sbdb_lookup.html#/?sstr=21655&view=V -- Regards, Chris Burrows CFB Software https://www.astrobe.com
Joerg: how about CTRL-C, CTRL-X, CTRL-V? These are now second nature. Are they implemented under TextFrames? Wojtek ________________________________________ From: Oberon [oberon-bounces@lists.inf.ethz.ch] on behalf of joerg.straube@iaeth.ch [joerg.straube@iaeth.ch] Sent: Tuesday, October 24, 2023 9:03 AM To: ETH Oberon and related systems Subject: [EXT] Re: [Oberon] Oberon keyboard tweaks Hans I saw you modified my TextFrames.Write. The underlying logic of my code is that Input.Read returns four special Oberon keys called “left”, “right”, “up”, “down” whatever their HW scancodes are. If you want Ctrl-B, Ctrl-F, Ctrl-P and Ctrl-N to behave like those 4 cursor keys, try mapping their scancodes to the 4 keys and leave TextFrame.Write untouched. However, it might be you want Ctrl-B, Ctrl-F… to behave differently in Frames that are not TextFrames. br Jörg Von: Oberon <oberon-bounces@lists.inf.ethz.ch> im Auftrag von Hans Klaver <hklaver@dds.nl> Datum: Dienstag, 24. Oktober 2023 um 14:17 An: ETH Oberon and related systems <oberon@lists.inf.ethz.ch> Betreff: Re: [Oberon] Oberon keyboard tweaks Dear Prof. Cayuela, Thank you for your message. If you or your students encounter any lack of clarity in my text or other problem, please let me know. With regards, Hans Klaver Op 24 okt. 2023, om 01:20 heeft Pablo Cayuela <pablo.cayuela@gmail.com<mailto:pablo.cayuela@gmail.com>> het volgende geschreven: Thank you Hans Klaver for your Tutorial. I plan to use it as a training tool for my students when learning to work through Project Oberon, and the initial lack of cursor keys and fixed upper case are great starting points to use as a guide to the inner workings. Best regards, Prof. Pablo Cayuela Argentina On Sun, 22 Oct 2023 at 11:30, Hans Klaver <hklaver@dds.nl<mailto:hklaver@dds.nl>> wrote: Hi all, Have you ever felt the desire to use the arrow keys while editing text or playing ObTris (Oberon Tetris) in Project Oberon 2013? Or wondered how to make changes to the keyboard code translation table in Input.Mod? I did, and I noticed that making such changes is not entirely trivial. So after fiddling with this for some time and succeeding to make most of the tweaks that I needed I wrote a small Tutorial on this. You can find it here: https://github.com/hansklav/Oberon-keyboard-tweaks<https://urldefense.com/v3/__https://github.com/hansklav/Oberon-keyboard-tweaks__;!!CGUSO5OYRnA7CQ!cAFrd8YltTAxn6m6D1KZfd83r6uDYoHtA3UJHL3N1MZEQUEEZKgbxtNR0eCR2UkcPcJEJo5cv88JKwojN9bywuMb74o2IFM$> Hoping it will useful to others, With regards, Hans Klaver -- Oberon@lists.inf.ethz.ch<mailto:Oberon@lists.inf.ethz.ch> mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon<https://urldefense.com/v3/__https://lists.inf.ethz.ch/mailman/listinfo/oberon__;!!CGUSO5OYRnA7CQ!cAFrd8YltTAxn6m6D1KZfd83r6uDYoHtA3UJHL3N1MZEQUEEZKgbxtNR0eCR2UkcPcJEJo5cv88JKwojN9bywuMbF2HjUzk$> -- Oberon@lists.inf.ethz.ch<mailto:Oberon@lists.inf.ethz.ch> mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon<https://urldefense.com/v3/__https://lists.inf.ethz.ch/mailman/listinfo/oberon__;!!CGUSO5OYRnA7CQ!cAFrd8YltTAxn6m6D1KZfd83r6uDYoHtA3UJHL3N1MZEQUEEZKgbxtNR0eCR2UkcPcJEJo5cv88JKwojN9bywuMbF2HjUzk$>
Am 02.11.2023 um 03:20 schrieb Skulski, Wojciech <skulski@pas.rochester.edu>:
Joerg:
how about CTRL-C, CTRL-X, CTRL-V? These are now second nature. Are they implemented under TextFrames?
- Buy a mouse (preferably one resembling half a sphere) with - at least! - three buttons - Learn how to use „inter-clicks“ - Don‘t go crazy if you accidentally cut your entire source code and clear your „clipboard“ (or whatever that buffer would be called in Oberon anyway) Oh, so you‘re asking about those „inter-clicks“? Let‘s see… select a text (or even an „object“), press and hold the middle mouse button, press and hold either the left or right mouse button (the „inter-click“, for cut or copy - or was it vice versa? See „cut entire source code“ example above ;)), let go of the middle button and then of the left or right button accordingly. The right button (or the middle, or yet another inter-click, perhaps in the opposite order, wouldn’t that be fun? Who knows… ;)) then pastes the selection where your text cursor is. „This is truly the only way text should be copied and this will become second nature.“ (Very broadly paraphrasing Prof. N. Wirth) Not sure whether that „inter-click“ is still implemented in Oberon 2013 - I guess it is. But I strongly suggest that you first try and learn with some very unimportant and discardable text - you‘ll thank me later ;) Happy inter-clicking ;) Oliver P.S. And yes, it became second nature to many students of Prof. N. Wirth, including me! Many times did I intuitively try this inter-click in other operating systems in the years to follow- only to realise that I have to grab the keyboard again ;)
Hi Wojtek As Oliver wrote: interclick is the thing to do in the Oberon OS. But CTRL-C, -V and -X is "officially" supported in PO2013: https://people.inf.ethz.ch/wirth/ProjectOberon/Sources/TextFrames.Mod.txt br Jörg -----Original Message----- From: Oberon <oberon-bounces@lists.inf.ethz.ch> On Behalf Of Oliver Knoll Sent: Thursday, November 2, 2023 7:41 AM To: ETH Oberon and related systems <oberon@lists.inf.ethz.ch> Subject: Re: [Oberon] Oberon keyboard tweaks
Am 02.11.2023 um 03:20 schrieb Skulski, Wojciech <skulski@pas.rochester.edu>:
Joerg:
how about CTRL-C, CTRL-X, CTRL-V? These are now second nature. Are they implemented under TextFrames?
- Buy a mouse (preferably one resembling half a sphere) with - at least! - three buttons - Learn how to use „inter-clicks“ - Don‘t go crazy if you accidentally cut your entire source code and clear your „clipboard“ (or whatever that buffer would be called in Oberon anyway) Oh, so you‘re asking about those „inter-clicks“? Let‘s see… select a text (or even an „object“), press and hold the middle mouse button, press and hold either the left or right mouse button (the „inter-click“, for cut or copy - or was it vice versa? See „cut entire source code“ example above ;)), let go of the middle button and then of the left or right button accordingly. The right button (or the middle, or yet another inter-click, perhaps in the opposite order, wouldn’t that be fun? Who knows… ;)) then pastes the selection where your text cursor is. „This is truly the only way text should be copied and this will become second nature.“ (Very broadly paraphrasing Prof. N. Wirth) Not sure whether that „inter-click“ is still implemented in Oberon 2013 - I guess it is. But I strongly suggest that you first try and learn with some very unimportant and discardable text - you‘ll thank me later ;) Happy inter-clicking ;) Oliver P.S. And yes, it became second nature to many students of Prof. N. Wirth, including me! Many times did I intuitively try this inter-click in other operating systems in the years to follow- only to realise that I have to grab the keyboard again ;) -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
But CTRL-C, -V and -X is "officially" supported in PO2013: https://people.inf.ethz.ch/wirth/ProjectOberon/Sources/TextFrames.Mod.txt
I suppose Jörg wrote "officially" because it is only weakly supported in PO2013; these ctrl-combinations only work within one and the same textframe, not between different textframes. Otoh, the procedures of Peter De Wachter's Clipboard.Mod (CopySelection, CopyViewer and Paste) work from/to the OS and PO2013, and within PO2013 also between different TextFrames. Linking these to ^C, ^X and ^V is difficult (at least, I didn't manage to get it working) trying to do so leads to runtime errors in sdl-clipboard.c Regards, Hans
On 2023-11-02 07:41, Oliver Knoll wrote:
„This is truly the only way text should be copied and this will become second nature.“
(Very broadly paraphrasing Prof. N. Wirth)
And I thought the keyboard was ergonomically superior to the mouse. Talking about text editing, is there a command in Oberon for wrapping paragraphs of text? I can't imagine having to insert manual line breaks in the right places when editing a paragraph of text, and having to reach for the mouse in between. /August
On Fri, Nov 3, 2023 at 5:08 AM August Karlstrom <fusionfile@gmail.com> wrote:
On 2023-11-02 07:41, Oliver Knoll wrote:
„This is truly the only way text should be copied and this will become second nature.“
(Very broadly paraphrasing Prof. N. Wirth)
And I thought the keyboard was ergonomically superior to the mouse.
Is that statement intended to be ironic? In case it was not - they are two very different tools. Each is superior to the other when used for the task they were designed to do. Talking about text editing, is there a command in Oberon for wrapping
paragraphs of text? I can't imagine having to insert manual line breaks in the right places when editing a paragraph of text, and having to reach for the mouse in between.
Do you mean 'word processing' rather than 'text editing'? Oberon has different tools designed to suit each activity. -- Regards, Chris Burrows https://www.astrobe.com
On 2023-11-03 22:44, Chris Burrows wrote:
On Fri, Nov 3, 2023 at 5:08 AM August Karlstrom <fusionfile@gmail.com <mailto:fusionfile@gmail.com>> wrote: And I thought the keyboard was ergonomically superior to the mouse.
Is that statement intended to be ironic? In case it was not - they are two very different tools. Each is superior to the other when used for the task they were designed to do.
I was thinking of some common injuries which are related to extended use of the mouse. https://www.ccohs.ca/oshanswers/ergonomics/office/mouse/mouse_problems.html Frequently having to reach for the mouse when writing text is also inefficient (obviously). In the Project Oberon System it is necessary to do that every time you need to reposition the insertion point (the arrow keys do not work). Or, maybe it's intended as a small penalty for not writing correctly the first time. https://www.youtube.com/watch?v=mLEOZO1GwVc&t=327s
Talking about text editing, is there a command in Oberon for wrapping paragraphs of text? I can't imagine having to insert manual line breaks in the right places when editing a paragraph of text, and having to reach for the mouse in between.
Do you mean 'word processing' rather than 'text editing'? Oberon has different tools designed to suit each activity.
When it comes to line wrapping you have the same need in a word processor (which supports text formatting) as in a text editor so I fail to see that the distinction is relevant in this case. I have only used the Project Oberon System briefly to try some things out and I'm therefor curious to know how it's used for real work. If you write paragraphs of text in a viewer (opened with Edit.Open), are you supposed to press the enter key when the right margin is reached? If you add or delete text in the middle of a paragraph, are you supposed to manually adjust the line breaks to make the paragraph look reasonable? /August
August Karlstrom wrote :
Talking about text editing, is there a command in Oberon for wrapping paragraphs of text? I can't imagine having to insert manual line breaks in the right places when editing a paragraph of text, and having to reach for the mouse in between. Do you mean 'word processing' rather than 'text editing'? Oberon has different tools designed to suit each activity.
When it comes to line wrapping you have the same need in a word processor (which supports text formatting) as in a text editor so I fail to see that the distinction is relevant in this case. I have only used the Project Oberon System briefly to try some things out and I'm therefor curious to know how it's used for real work. If you write paragraphs of text in a viewer (opened with Edit.Open), are you supposed to press the enter key when the right margin is reached? If you add or delete text in the middle of a paragraph, are you supposed to manually adjust the line breaks to make the paragraph look reasonable?
I do quite some Oberon programming in PO2013 and I must say that I rarely miss a line/paragraph wrapping function. In other editors that I use for software development (BBEdit, VS Code) I have the line wrap feature off by default. This is because the wrapping mostly is to the left margin, which is not what you want in editing code (because of the extensive indentation of program text). Of course for editing texts other than program code paragraph wrapping is very handy and I guess most people would find it indispensable. Apart from the text editor 'Edit' early versions of Oberon System (e.g. V1.2, 1992) already had another editor 'Write' (by Clemens Szyperski and Mattias Hausner) which had paragraph commands ('parc') that supported line wrapping, among other things. In later versions of Oberon System the two editors 'Edit' and 'Write' merged into one editor; today the built-in text editor of BlackBox Component Framework is an offspring of that editor and can be used quite conveniently for both code editing and word processing. The editor that is described in the book Project Oberon (1992) is 'Edit', and when reviving Project Oberon 2013 Niklaus Wirth chose to describe and use that rather frugal but relatively simple to explain editor for Oberon System V5. Probably for someone who started programming using punched cards and teletypes that is not such a strange choice ;-) I concur that overuse of the mouse (or trackpad) can lead to repetitive strain injury of the hand, which can be quite bothersome. That is one reason why I tweaked the keyboard code of PO2013 so that the arrow keys can be used for small movements of the caret. Interestingly early versions of 'Write' already supported horizontal arrow key movements, but not vertical. With regards, Hans
participants (8)
-
August Karlstrom -
Chris Burrows -
Hans Klaver -
joerg.straube@iaeth.ch -
Jörg @ ggaweb -
Oliver Knoll -
Pablo Cayuela -
Skulski, Wojciech