Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: neonix on March 10, 2026, 11:41:47 AM

Title: mini-commander
Post by: neonix on March 10, 2026, 11:41:47 AM
Does tiny core squad accept code written by GPT4?

I compiled this program but F2, F3, F4 keys doesn't work.
https://github.com/Tomas-M/mini-commander/archive/refs/tags/v1.0.zip

Code: [Select]
[/tc@box:~/e$ diff -ruN mini-commander-1.0 mini-commander-1.0patched
diff -ruN mini-commander-1.0/Makefile mini-commander-1.0patched/Makefile
--- mini-commander-1.0/Makefile 2023-10-29 14:18:12.000000000 +0000
+++ mini-commander-1.0patched/Makefile  2026-03-10 09:13:37.668733180 +0000
@@ -1,6 +1,6 @@
 CC = gcc
-CFLAGS += -lncurses -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -s -g0
-#CFLAGS += -lncurses -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -g
+CFLAGS += -lncursesw -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -s -g0
+#CFLAGS += -lncursesw -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -g
 
 mc: *.c *.h
        $(CC) mc.c cmd.c operations.c dialog.c filelist.c init.c panel.c ui.c view_edit.c progress.c $(CFLAGS) -o mc
diff -ruN mini-commander-1.0/cmd.c mini-commander-1.0patched/cmd.c
--- mini-commander-1.0/cmd.c    2023-10-29 14:18:12.000000000 +0000
+++ mini-commander-1.0patched/cmd.c     2026-03-10 08:11:08.978317649 +0000
@@ -1,4 +1,4 @@
-#include <ncurses.h>
+#include <ncursesw/ncurses.h>
 #include <string.h>
 #include <unistd.h>
 #include <pwd.h>
diff -ruN mini-commander-1.0/dialog.c mini-commander-1.0patched/dialog.c
--- mini-commander-1.0/dialog.c 2023-10-29 14:18:12.000000000 +0000
+++ mini-commander-1.0patched/dialog.c  2026-03-10 08:13:19.514998789 +0000
@@ -1,4 +1,4 @@
-#include <ncurses.h>
+#include <ncursesw/ncurses.h>
 #include <string.h>
 #include <unistd.h>
 #include <pwd.h>
diff -ruN mini-commander-1.0/filelist.c mini-commander-1.0patched/filelist.c
--- mini-commander-1.0/filelist.c       2023-10-29 14:18:12.000000000 +0000
+++ mini-commander-1.0patched/filelist.c        2026-03-10 08:13:06.298330657 +0000
@@ -1,4 +1,4 @@
-#include <ncurses.h>
+#include <ncursesw/ncurses.h>
 #include <string.h>
 #include <unistd.h>
 #include <pwd.h>
diff -ruN mini-commander-1.0/init.c mini-commander-1.0patched/init.c
--- mini-commander-1.0/init.c   2023-10-29 14:18:12.000000000 +0000
+++ mini-commander-1.0patched/init.c    2026-03-10 08:12:52.578329136 +0000
@@ -1,4 +1,4 @@
-#include <ncurses.h>
+#include <ncursesw/ncurses.h>
 #include <string.h>
 #include <unistd.h>
 #include <pwd.h>
Binary files mini-commander-1.0/mc and mini-commander-1.0patched/mc differ
diff -ruN mini-commander-1.0/mc.c mini-commander-1.0patched/mc.c
--- mini-commander-1.0/mc.c     2023-10-29 14:18:12.000000000 +0000
+++ mini-commander-1.0patched/mc.c      2026-03-10 08:10:43.354981477 +0000
@@ -1,4 +1,4 @@
-#include <ncurses.h>
+#include <ncursesw/ncurses.h>
 #include <getopt.h>
 #include <string.h>
 #include <unistd.h>
diff -ruN mini-commander-1.0/operations.c mini-commander-1.0patched/operations.c
--- mini-commander-1.0/operations.c     2023-10-29 14:18:12.000000000 +0000
+++ mini-commander-1.0patched/operations.c      2026-03-10 08:14:09.745004354 +0000
@@ -1,4 +1,4 @@
-#include <ncurses.h>
+#include <ncursesw/ncurses.h>
 #include <string.h>
 #include <unistd.h>
 #include <pwd.h>
diff -ruN mini-commander-1.0/panel.c mini-commander-1.0patched/panel.c
--- mini-commander-1.0/panel.c  2023-10-29 14:18:12.000000000 +0000
+++ mini-commander-1.0patched/panel.c   2026-03-10 08:12:37.498327461 +0000
@@ -1,4 +1,4 @@
-#include <ncurses.h>
+#include <ncursesw/ncurses.h>
 #include <string.h>
 #include <unistd.h>
 #include <pwd.h>
diff -ruN mini-commander-1.0/progress.c mini-commander-1.0patched/progress.c
--- mini-commander-1.0/progress.c       2023-10-29 14:18:12.000000000 +0000
+++ mini-commander-1.0patched/progress.c        2026-03-10 08:12:00.074989982 +0000
@@ -1,4 +1,4 @@
-#include <ncurses.h>
+#include <ncursesw/ncurses.h>
 #include <string.h>
 #include <unistd.h>
 #include <pwd.h>
Binary files mini-commander-1.0/static/mc and mini-commander-1.0patched/static/mc differ
diff -ruN mini-commander-1.0/ui.c mini-commander-1.0patched/ui.c
--- mini-commander-1.0/ui.c     2023-10-29 14:18:12.000000000 +0000
+++ mini-commander-1.0patched/ui.c      2026-03-10 08:12:23.418325905 +0000
@@ -1,4 +1,4 @@
-#include <ncurses.h>
+#include <ncursesw/ncurses.h>
 #include <string.h>
 #include <unistd.h>
 #include <pwd.h>
diff -ruN mini-commander-1.0/view_edit.c mini-commander-1.0patched/view_edit.c
--- mini-commander-1.0/view_edit.c      2023-10-29 14:18:12.000000000 +0000
+++ mini-commander-1.0patched/view_edit.c       2026-03-10 08:12:10.378324458 +0000
@@ -1,4 +1,4 @@
-#include <ncurses.h>
+#include <ncursesw/ncurses.h>
 #include <string.h>
 #include <unistd.h>
 #include <pwd.h>
code]
Title: Re: mini-commander
Post by: Juanito on March 11, 2026, 03:20:31 AM
You mean do we accept AI generated code?

As long as you have checked it over we could give it a try.