fix console.h, add console example
git-svn-id: svn://kolibrios.org@6685 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
23d86a6122
commit
5674a7aa14
@ -7,3 +7,4 @@ tup.rule("window.c", "c-- /D=AUTOBUILD /D=$(C_LANG) %f" .. tup.getconfig("KPACK_
|
||||
tup.rule("collections.c", "c-- /D=AUTOBUILD /D=$(C_LANG) %f" .. tup.getconfig("KPACK_CMD"), "collections.com")
|
||||
tup.rule("menu.c", "c-- /D=AUTOBUILD /D=$(C_LANG) %f" .. tup.getconfig("KPACK_CMD"), "menu.com")
|
||||
tup.rule("rgb.c", "c-- /D=AUTOBUILD /D=$(C_LANG) %f" .. tup.getconfig("KPACK_CMD"), "rgb.com")
|
||||
tup.rule("console.c", "c-- /D=AUTOBUILD /D=$(C_LANG) %f" .. tup.getconfig("KPACK_CMD"), "console.com")
|
||||
|
@ -1,9 +1,10 @@
|
||||
@del *.kex
|
||||
|
||||
@c-- window.c
|
||||
@c-- collections.c
|
||||
@c-- console.c
|
||||
@c-- menu.c
|
||||
@c-- rgb.c
|
||||
@c-- window.c
|
||||
|
||||
@rename *.com *.kex
|
||||
@mkdir bin
|
||||
|
18
programs/cmm/examples/console.c
Normal file
18
programs/cmm/examples/console.c
Normal file
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* Console example in C--
|
||||
*/
|
||||
|
||||
#define MEMSIZE 4096*10
|
||||
|
||||
#include "../lib/obj/console.h"
|
||||
|
||||
void main()
|
||||
{
|
||||
load_dll(libConsole, #con_init, 0);
|
||||
con_init stdcall (-1, -1, -1, -1, "Hello");
|
||||
con_set_flags stdcall (0x1F);
|
||||
con_write_string stdcall ("Console test", 12);
|
||||
con_exit stdcall (0);
|
||||
ExitProcess();
|
||||
}
|
||||
|
@ -50,7 +50,7 @@ char a_con_gets[] = "con_gets";
|
||||
char a_con_gets2[] = "con_gets2";
|
||||
char a_con_get_font_height[] = "con_get_font_height";
|
||||
char a_con_get_cursor_height[] = "con_get_cursor_height";
|
||||
char a_con_set_cursor_height[] = "con_ges_focursoreight";
|
||||
char a_con_set_cursor_height[] = "con_set_cursor_height";
|
||||
char a_con_cls[] = "con_cls";
|
||||
char a_con_get_cursor_pos[] = "con_get_cursor_pos";
|
||||
char a_con_set_cursor_pos[] = "con_set_cursor_pos";
|
||||
|
Loading…
Reference in New Issue
Block a user