Page 1 of 1

C/C++ Console Example for GCC

Posted: Thu Dec 02, 2010 11:59 pm
by Pablo
Hello KollibriOS Crew!

I want write a tiny programm for KolibriOS. The HelloWorld example from http://diamondz.land.ru/hll/hll_eng.htm for GCC works allready on KollibriOS.
Do you have some console examples in c or c++?
I just want output some text and don't like to build a gui window.

Greetz,
Pablo

Re: C/C++ Console Example for GCC

Posted: Fri Dec 03, 2010 9:10 am
by Unduing
As i know there is only gui windows in KolibriOS.
Watch program "shell".

Re: C/C++ Console Example for GCC

Posted: Fri Dec 03, 2010 4:55 pm
by CleverMouse
There is an example for KTCC located in svn://kolibrios.org/programs/develop/ktcc/trunk/samples/console/console.c. As far as I know, there is no ready example for GCC, but you can look into the sources of SHELL, namely programs/system/shell/system/console.c for console initialization, programs/system/shell/kolibri.c for base functions and programs/system/shell/cmd/cmd_echo.c as printf example - note, however, that using \r after \n is unusual style and not required; available in svn://kolibrios.org and in sources of the distribution kit.

Re: C/C++ Console Example for GCC

Posted: Fri Dec 10, 2010 5:11 pm
by Asper