v2.0.0 - Overhauled the 'read' function in the terminal library, added a new Unicode library, and various functions added to the filesystem library.

In older versions, the 'read' function in the terminal library (termlib.lua) was most likely vibecoded by Fluxdrive, and was basically very inefficient. The new Unicode library includes functions for getting a code point from a character, and iterating Unicode characters from a string or an iterator function that returns every byte. It is now possible, in the filesystem library, to make virtual 'read streams' (filesystem.makeReadStream), which does the same thing as opening a file with some specific content. There are some new functions in read streams, which allows you to loop through bytes (open(...):iterateBytes), and loop through Unicode characters (open(...):iterateUnicodeChars). The edit app will be updated to v1.2.1 for importing the new Unicode library.
This commit is contained in:
Ponali
2025-07-07 17:45:52 +02:00
parent d386ec5eba
commit c0929bf639
7 changed files with 342 additions and 237 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
local agcfg = {
["halyde"] = {
["maindir"] = "",
["version"] = "1.15.0",
["version"] = "2.0.0",
["description"] = "A universal, customizable and feature-packed operating system for OpenComputers.",
["directories"] = {
"halyde/apps",
@@ -82,7 +82,7 @@ local agcfg = {
},
["edit"] = {
["maindir"] = "",
["version"] = "1.2.0",
["version"] = "1.2.1",
["description"] = "The default text editor for Halyde.",
["files"] = {
"halyde/apps/edit.lua",