[Oberon] Re (2): Communicating with aliens : cursor keys etc.

Dieter d.gloetzel at web.de
Thu Jan 14 10:21:47 CET 2016


Hi!

I wonder whether there are any people out in cyber space who like myself 
are working with the Oberon Desktop (and gadgets) under Oberon 2.5 for 
Windows.

The Desktop Editor has a lot of nice features, among them the use of the 
cursor keys.

(1) The text marked with the right mouse button is usable with the 
clipboard commands "Ctrl-C", "Ctrl-V" and "Ctrl-X".
(2) Cursor keys left-right and up-down are working.
(3) Screen up and down keys are working.
(4) Positioning at the beginning or end of a line ("pos1" and "end" key) 
are working.
(5) Moving up and down in the editor window with the mouse wheel.
(6) Then there is a fantastic navigation tool in Modules. You activate 
"TextPopups.install" in Configuration.Text of Windows Oberon and then, 
when you click with MM ( middle mouse button) somewhere inside a *.Mod 
editor window,  a pop-up with a list of all PROCEDUREs and TYPEs of the 
MODULE appears.
      You can then select a PROCEDURE by releasing the MM key and 
navigate to this procedure.
      Since this was not present in OLR-Linux, I copied the Module 
TextPopups from Windows Version 2.5 to OLR-Linux, compiled it and it 
works as well in OLR under the Desktop environment.
(7) OF course the famous Oberon double clicks are also working, if you 
have a 3-button mouse, as well as the clicks into the scroll bar of the 
editor window.

The only feature from Windows editing I am missing, is the following: 
Marking a piece of text with Shift + any cursor-key

I do not have the skills, to implement such features, but it may give  
inspiration, how one could do it for other Oberon versions.

Regards,
Dieter Glötzel

Am 14.01.2016 um 03:23 schrieb R. P. de Jong:
> Hi Joerg, Peter, Paul Reed, Others
>
>
> Agree the differences in arrow-key to ASCII mapping is unfortunate.
> I guess since in Project Oberon the arrow keys have not been used until such recently (afaik), nobody paid much attention to their ascii codes. Personally, i don’t even know which ascii codes the FPGA and Windows emulator system use for the arrow keys and if these codes were consciously chosen (considering that they are different on FPGA and the Windows emulator, as you mention).
>
> In my opinion it is practically unavoidable to have different Input.Mod implementations for various systems, unless you allow only the FPGA and its standard keyboard. In Oberon Workstation, the Input.Mod has a implementation that is almost empy because we don’t need to assemble ascii from key-scan codes, modifier keys and key-up/down information. You might as well edit this module to translate the current DC1..DC4 codes to anything that you consider practical for the moment.
>
> If Prof. Wirth himself and/or Paul Reed would provide a resolution consisting of 4 ascii control codes to represent the arrow keys (also in the FPGA system and Windows emulator), i’ll be happy to adopt these in the next release of Oberon Workstation. Although we have a considerable amount of users nowadays (since someone mentioned the app on HN/YC), it is still not too painful to change the arrow codes i guess.
>
> Regards,
> Roel P. de Jong
>
>
>
>> On 13 Jan, 2016, at 14:46 , peter at easthope.ca wrote:
>>
>> From:	Joerg <joerg.straube at iaeth.ch>
>> Date:	Tue, 12 Jan 2016 11:31:53 +0100
>>> 2) ... a little unfortunate that Project Oberon has no
>>> standardized definitions of the key codes for the up, left, right and
>>> down keys. ...
>> Important detail.  Thanks Joerg.
>>
>>> 1) In the original Input.Mod there is an array for key code mapping.
>> No offense to authors but a more difficult small accessory trail from
>> the main route Input.
>>
>>> 2) add constant definitions in Input.Mod (either fix or varying per
>>> platform) for the control keys ...
>> Thanks again,                          ... Peter E.
>>
>> -- 
>> 123456789 123456789 123456789 123456789 123456789 123456789 123456789 12
>> Tel +1 360 639 0202
>> http://easthope.ca/Peter.html Bcc: peter at easthope. ca
>>
>> --
>> Oberon at lists.inf.ethz.ch mailing list for ETH Oberon and related systems
>> https://lists.inf.ethz.ch/mailman/listinfo/oberon
> --
> Oberon at lists.inf.ethz.ch mailing list for ETH Oberon and related systems
> https://lists.inf.ethz.ch/mailman/listinfo/oberon




More information about the Oberon mailing list