velorek1 / c-edit Goto Github PK
View Code? Open in Web Editor NEWA text editor in C with drop down menus from scratch. No ncurses.
License: MIT License
A text editor in C with drop down menus from scratch. No ncurses.
License: MIT License
I do not understand why the backspace key does not delete the characters as in any normal editor
Compiles well but when ran the main screen is partially displayed before crashing:
On OpenBSD it even disconnects the SSH session. Email me at [email protected] if you want to test for yourself, I can give you an account on my server.
OpenBSD 6.3 GENERIC#100 amd64
OpenBSD clang version 5.0.1 (tags/RELEASE_501/final) (based on LLVM 5.0.1)
NetBSD netbsd 8.0 NetBSD 8.0 (GENERIC) #0: Tue Jul 17 14:59:51 UTC 2018 [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC amd64
gcc (nb2 20180327) 5.5.0
Nice project!
I just tried to build C-edit under Serenity OS and got this far:
i686-pc-serenity-gcc -c -o main.o main.c
i686-pc-serenity-gcc -c -o rterm.o rterm.c
i686-pc-serenity-gcc -c -o listc.o listc.c
i686-pc-serenity-gcc -c -o scbuf.o scbuf.c
i686-pc-serenity-gcc -c -o opfile.o opfile.c
i686-pc-serenity-gcc -c -o uintf.o uintf.c
i686-pc-serenity-gcc -c -o fileb.o fileb.c
i686-pc-serenity-gcc -c -o keyb.o keyb.c
opfile.c: In function 'listFiles':
opfile.c:612:25: error: 'DT_DIR' undeclared (first use in this function); did you mean 'DIR'?
if(dir->d_type == DT_DIR) {
^~~~~~
DIR
opfile.c:612:25: note: each undeclared identifier is reported only once for each function it appears in
opfile.c:651:25: error: 'DT_REG' undeclared (first use in this function); did you mean 'F_RED'?
if(dir->d_type == DT_REG) {
^~~~~~
F_RED
<builtin>: recipe for target 'opfile.o' failed
make: *** [opfile.o] Error 1
Apparently you can use stat
instead of d_type
to make it more portable. Apparently d_type
is a BSDism.
The box drawing lines are missing and the colors are off when running on FreeBSD:
FreeBSD freebsd 11.2-RELEASE FreeBSD 11.2-RELEASE #0 r335510: Fri Jun 22 04:32:14 UTC 2018 [email protected]:/usr/obj/usr/src/sys/GENERIC amd64
FreeBSD clang version 6.0.0 (tags/RELEASE_600/final 326565) (based on LLVM 6.0.0)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.