libc.obj: implement console output via SHELL #354

Open
Egor00f wants to merge 4 commits from Egor00f/kolibrios:libc.obj-add-shell-console-output into main
Collaborator

Adding console I/O via the SHELL.

Demonstration of http_tcp_demo.c:

Adding console I/O via the `SHELL`. Demonstration of [http_tcp_demo.c](https://git.kolibrios.org/KolibriOS/kolibrios/src/branch/main/programs/develop/ktcc/libc.obj/samples/http_tcp_demo.c): <video src="attachments/847d7d19-3d67-480d-80c8-6d678af61a43" title="Запись экрана от 2026-03-07 13-55-50.mp4" controls></video>
Sweetbread requested changes 2026-03-07 21:35:52 +00:00
Sweetbread left a comment
Owner

Do not use merge commits

Do not use merge commits
Egor00f force-pushed libc.obj-add-shell-console-output from 7a2ada925a to b2e4b02806 2026-03-08 13:41:02 +00:00 Compare
Author
Collaborator

ok, i force history without merge

ok, i force history without merge
Egor00f requested review from Sweetbread 2026-03-08 19:05:37 +00:00
mxlgv added the CCategory/Libraries
Kind
Enhancement
Priority
Low
labels 2026-03-11 10:26:27 +00:00
Egor00f added a new dependency 2026-03-14 18:03:54 +00:00
Egor00f removed a dependency 2026-03-14 18:24:04 +00:00
Member

@Egor00f - Please note that the file path for ktcc was recently changed with #425. This will conflict with your changes.

@Egor00f - Please note that the file path for `ktcc` was recently changed with #425. This will conflict with your changes.
Egor00f force-pushed libc.obj-add-shell-console-output from b2e4b02806 to 8a70ca5b31 2026-04-26 09:56:02 +00:00 Compare
Egor00f force-pushed libc.obj-add-shell-console-output from 8a70ca5b31 to e3acc67244 2026-04-28 18:28:44 +00:00 Compare
Egor00f force-pushed libc.obj-add-shell-console-output from e3acc67244 to a56061a99c 2026-05-17 07:21:30 +00:00 Compare
Egor00f force-pushed libc.obj-add-shell-console-output from a56061a99c to 66c05c786a 2026-05-19 14:00:55 +00:00 Compare
Egor00f force-pushed libc.obj-add-shell-console-output from 2170ffba0d to 1a9c544d42 2026-05-20 04:51:50 +00:00 Compare
Egor00f changed title from libc.obj: shell console output support to `libc.obj`: implement console output via `SHELL` 2026-06-05 14:00:55 +00:00
Egor00f added 4 commits 2026-06-05 14:01:09 +00:00
Egor00f force-pushed libc.obj-add-shell-console-output from 1a9c544d42 to 57c6132411 2026-06-05 14:01:09 +00:00 Compare
Egor00f requested review from Burer 2026-06-05 14:02:11 +00:00
Egor00f requested review from Doczom 2026-06-05 14:02:12 +00:00
Egor00f requested review from dunkaist 2026-06-05 14:02:12 +00:00
Egor00f requested review from mxlgv 2026-06-05 14:02:12 +00:00
Sweetbread reviewed 2026-06-05 17:57:15 +00:00
@@ -74,2 +74,4 @@
}
Owner

Why?

Why?
Author
Collaborator

idk

idk
Member

It's a much needed mechanism, but unfortunately the provided solution will be exclusive for C users :(

It's a much needed mechanism, but unfortunately the provided solution will be exclusive for C users :(
Author
Collaborator

@hidnplayr, you can use libc stdio functions in assembler if you need to.

@hidnplayr, you can use libc stdio functions in assembler if you need to.
Doczom reviewed 2026-06-07 07:24:50 +00:00
Doczom reviewed 2026-06-07 07:40:19 +00:00
@@ -11,1 +13,4 @@
memcpy(&pid, __shell_shm + 1, sizeof(unsigned));
}
return pid;
Owner

Не стоит ли инициализировать переменную pid, на случай если подключения к консоли всё же не будет,

Не стоит ли инициализировать переменную pid, на случай если подключения к консоли всё же не будет,
Author
Collaborator

Пожалуй стоит.

Пожалуй стоит.
All checks were successful
Build system / Check kernel codestyle (pull_request) Successful in 52s
Required
Details
Build system / Build (pull_request) Successful in 21m9s
Required
Details
This pull request doesn't have enough required approvals yet. 0 of 2 official approvals granted.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u http://git.kolibrios.org/Egor00f/kolibrios libc.obj-add-shell-console-output:Egor00f-libc.obj-add-shell-console-output
git checkout Egor00f-libc.obj-add-shell-console-output
Sign in to join this conversation.
5 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: KolibriOS/kolibrios#354