Hacking STDIN linux

mon projet TermCurs
my project, allowed me to understand how to properly hack under Linux
so a lot of system resources less
USE openfile TTY
it was in front of my eyes but… the hacking is done in pure zig-lang

I also worked a lot with MultiArrayList and Arraylist to make a proper and dynamic GRID

my project is to make a terminal such as an IBM 5250/3270 type AS400.
I resume my project made under nim-lang a designer code generator. Currently I have laid the foundations
the link for those interested.

Thank you

6 Likes

Hello, I made a lot of new function in my project to make a lib that looks like ncurse, and which I will use later to make a designer.
I also included a function to use regex in Go-lang
if you look it lets you see how C headers communicate with Zig-lang
functions :
panel
label
button
frame
grid
menu
outstanding Field input output

I am proud to present the TERMCURS library
it will be definitively validated with the generator designer project. Hoping to have no more changes, but I’m sure there will be additions of functions.
TERMCURS

2 Likes

hello

version ZIG 0.10.1

Removed Go regex module
Setting up the use of regex.h
Results hundreds of KB less
currently gencurs makes 156k

Gencurs currently only does on-screen definition,
I am testing the termcurs lib.
as soon as I have finished the fields I will start generating code…

2 Likes

Small point to make about the readme on your library - you may want to move the the status updates to a separate page. I can see you’ve done a lot of documenting about the changes you’ve made, but scrolling up and down, it’s not obvious what the project actually does. Usually when I read the readme on a library, it’s to get a sense of what the library does first and then I can look at the push/git activity to get a sense of what has been updated.

Just trying to be helpful! :slight_smile:

3 Likes

thank you very much, I do during my retirement, I advance every week, and I do this alone, among other things I have only been using ZIG since October 2022, and at times I spend more time reading than develop
because I would like to keep it simple, thank you for the advice. I will do as you suggest.

it’s done, I hope this is more explicit, while waiting for my generator of source to be operational.

2 Likes

It’s better!

the project is alive and evolving it is in phase 2 what I write what I see

humm I have to get down to doing a doc

TermCurs

1 Like

Hello, many changes, especially in the way “allocators” are handled. I have also sanitized the terminal management, separated Forms / Grid / Menu functions, and save and restore functions are active; it’s still in testing.
I believe the foundations have been laid, and now I can start generating the menu and the grid.
I also changed the layout in the readme.

Termcurs

1 Like

Deep modification of Termcurs, taking into account function keys F1…F36, code review, and testing. I have read a lot of other people’s code. I was fortunate that someone wanted to tackle Regex simplification in pure ZIG and ensure it works for forms with programmable (random) regex construction.

As a result, I had to rework my entire application. I apologize if there are still some bugs; this was a very significant modification. It is ongoing and evolving. I am currently defining the menus, and once I am done, I will complete the introduction of Json, followed by the generation of ZIG code.

I also spend time reading what others are doing, which gives me ideas, and I correct my code for better clarity and simplification.

Termcurs

1 Like

Termcurs

Now that the entire designer allows for saving and restoring the code, this has allowed me to test my functions, and especially to take a little tour of the Zig language. I opted for working and writing with maximum use of the Zig language, so I don’t use addressing or hex code; everything is in Zig.

now i will generate some code and for that i will use the module “MUSTACHE-ZIG”

In the current state, one could very well use JSON files and encapsulate them in the program, and why not make the forms in the project dynamic… I did this on the AS400.

1 Like

Hello, there has been significant progress in my Termcurs project.
Both in the core code (a lot of clarity regarding keyboard input handling) and in testing to validate behavior.
The source generator is starting to behave quite well.
It’s not all finished yet, but it’s already functional.

As a test, I will use directory management for defining zones and creating tables that reference the directory.

See you soon!