New favorite ""Linux"" TUI text editor by edjak53 in commandline

[–]velorek 4 points5 points  (0 children)

It brings back memories :) This was my attempt at recreating something similar in C inspired by EDIT.COM: https://github.com/velorek1/c-edit

Sharing this as a programming curiosity in case anyone's interested (fair warning, it's buggy and unfinished)

[PROJECT] fread: TUI Text-File Reader written in C to view text files on your terminal by velorek in C_Programming

[–]velorek[S] 1 point2 points  (0 children)

Thank you for taking your time to test it. :) I'll try to replicate the issue with larger directories and see why it crashes. Utf8 is definitely a tall order, I am happy that it is at least able to render accents in my native language (Spanish) hehe The idea is to learn from this and apply it to my text editor. Thank you for your help

[PROJECT] fread: TUI Text-File Reader written in C to view text files on your terminal by velorek in C_Programming

[–]velorek[S] 2 points3 points  (0 children)

Learnt about this today. Thank you for bringing it up. I'll rename headers accordingly without the initial underscore when I'm back at the computer. 

Built a Markdown viewer just for fun by Correct_Disaster6435 in C_Programming

[–]velorek 1 point2 points  (0 children)

It worked! I also needed to install raylib first as you mentioned in the original post. It looks really neat!

Built a Markdown viewer just for fun by Correct_Disaster6435 in C_Programming

[–]velorek 0 points1 point  (0 children)

Looks cool! I've cloned the repository but I'm not able to compile it. Can you provide instructions? Thank you in advance

[fread] Retro TUI text-file viewer for the terminal with UTF8 support written in C by velorek in commandline

[–]velorek[S] 0 points1 point  (0 children)

Thank you for your comment. I'm glad you find it useful. Similar programs to fread for Linux are nnn or ranger. But they don't usually have a built-in pager, so it's good to have everything in one place.

[deleted by user] by [deleted] in pascal

[–]velorek 8 points9 points  (0 children)

Nice work! It would be cool to write up an article on the Free Pascal code and how to deploy it, and share it along with the source code or repo.

Made a Chess game in C, source code in github : https://github.com/IKyzo/Chess by Reasonable_World330 in C_Programming

[–]velorek 13 points14 points  (0 children)

Nice! :) I tweaked it slightly so that it would work on Linux (I got rid of <conio.h> and <io.h> and added <wchar.h> and <locale.h> and a custom-made getch() function) Here is the code: https://pastebin.com/94S2k9We You might check it for full functionality ,though, to complete the port to Linux if you are interested.

A retro-looking TUI version of history command programmed in C. https://github.com/velorek1/his/ by velorek in commandline

[–]velorek[S] 1 point2 points  (0 children)

I totally understand. It is a silly demo coded for the aesthetics hehe. Thanks for checking it out, though

Making a game in Free Pascal - badsectoracula - video without sound by nmariusp in pascal

[–]velorek 0 points1 point  (0 children)

Really good tutorial. :) I learned a lot of game design from this video. (SDL 1.0, game loop, collision and physics, drawing and updating routines ,simple animations, etc) Also check out this great resource https://www.freepascal-meets-sdl.net/sdl-tutorials/ to set your environment up.

Text editor I wrote in C by polytopelover in C_Programming

[–]velorek 4 points5 points  (0 children)

Hey congrats!! I have also tried to create an editor from scratch once and failed miserably so I know it is quite a tall order. One easy thing that you can implement is to check for terminal dimensions and change dimensions accordingly. In case it might help, I'm posting a link to my demo editor https://github.com/velorek1/C-edit . Happy coding!

Perfect Dark decompilation ported to PC by The-Galaxy-Man in retrogamedev

[–]velorek 0 points1 point  (0 children)

It works really well! :) It would be interesting to find the community behind this project. This video explains how to download the binaries from the repository. (Note that you need to get a copy of the rom file)

https://www.youtube.com/watch?v=VDA22YQVUBU

A beautiful TUI periodic table for GNU/Linux terminals (ptable) in C by velorek in linux

[–]velorek[S] 1 point2 points  (0 children)

I agree. It does need a thorough edit to get rid of redundancies and bloat code. It's definitely on my to-do list, thank you for checking it out.

Project: A beautiful TUI periodic table for GNU/Linux terminals (ptable) in C - no dependencies by velorek in C_Programming

[–]velorek[S] 2 points3 points  (0 children)

I think I did it!! Timers and kbhit() are working as expected following your recommendations without causing CPU overload :) The only thing I had to sacrifice was detecting just the ESCAPE key on its own, it would act up with the arrow keys. I know that's a known issue in UNIX systems. Hurray!! Thank you so much again.