About This File
What's New in Version 0.4.0 See changelog
This release is made for the current Github master branch of the X16 Kernal and emulator, what is expected to become version R39. It will not work on Kernal/emulator R38 or earlier.
The keyboard routines have been redesigned in many ways using a custom PS/2 scan code handler, a new feature of the upcoming R39 Kernal. The custom handler keeps track of modifier key status finally solving the problem of overlapping values returned from the Kernal GETIN function (for instance, GETIN returns the same value for ESC and Ctrl+C). The custom handler also enables some keys not supported by the Kernal such as PgUp, PgDn, End, Delete (not to be confused with Backspace), and the numerical keypad keys.
In this version the cursor is changed from a blinking underscore to a blinkning block, much like in the BASIC editor. In previous versions, a sprite was used as cursor. The blinking underscore worked, but when the cursor moved for longer distances, for example when searching, it was a bit hard to find the cursor again. The sprite option was originally used as I hadn't come up with a good solution for a block cursor that worked in ISO mode where all characters do not have a reversed version of themselves. At last I came up with the idea to show the cursor by reversing the background and foreground colors. And this works nicely both in PETSCII and ISO mode.
The cut, copy and paste functions was fixed to work more like GNU Nano. In earlier versions the cut/copy buffer was cleared when pasted into the current file. In this version the cut/copy buffer is not cleared which makes it possible to paste the content several times. The cut/copy buffer is cleared the first time you cut or copy a line after pasting.
A minor change was made to the search function. In earlier versions it would start searching from the position of the cursor. This meant that you could not make repeated searches for the same keyword without manually moving the cursor forward at least one step between each search. From this version, the search starts from the character after the current cursor position making repeated searches easier.
Apart from that, some code and UI cleanup to make the user experience better (I hope).
The differences to the X16EDIT-PRE-39.PRG file previously uploaded to this site (not a proper release) are quite small, but this version should be more stable and have fewer glitches.