You are browsing as a guest. Sign up (or log in) to start making projects!

ezxd1148

@ezxd1148

Joined June 7th, 2026

  • 2Devlogs
  • 2Projects
  • 0Ships
  • 0Votes
Hello, I am working on Zig-TextEditor
Open comments for this post

1h 40m 45s logged

Day 2, I was facing a very hard problem where I fought a bunch of error and successfully compiled the script. It does not work as what I was expecting it to…

I thought it was because I used std.process.cleanExit(io) but after i changed it to std.process.exit(1) the problem persists.

I decided to isolate the code above to a test file to confirm my problem.

Weird….. i isolated related codes together and it works perfectly well in another script. I am now guessing it has something to do with the termios flags I set up.

At the end of the day I only got test.zig to work properly when main.zig was supposed to be the main script

0

Loading discussion…

0
1
Open comments for this post

41m 59s logged

Today, things is going pretty well. The materials that I refer to is so well written I instantly understand what is being done.

For handling inputs, I wrap read() stdin file with forever true loop (until q is inputted). I also played a bit with termios(terminal) flags to produce predictable and easy output to the terminal.

Since the first part is pretty simple, it took me under 40 minutes to complete the code (with my broken laptop blacking out at a random interval).

Tomorrow, I will first properly print things to the terminal without using std.debug.print. Since I haven’t done that (i used std.debug.print all of the time) This might be a challenge for me to face. After that, I will follow the materials until i reached the end of second part.

0

Loading discussion…

0
3

Followers

Loading…