Newlibc: Added con_set_title wrapper

git-svn-id: svn://kolibrios.org@9354 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
turbocat 2021-12-02 19:24:53 +00:00
parent b34f9856cb
commit 2a13666707
2 changed files with 9 additions and 4 deletions

View File

@ -12,6 +12,7 @@ public _con_cls
public _con_write_string@8
public _con_getch2@0
public _con_gets
public con_set_title as '_con_set_title_ptr'
section '.text' align 16
@ -272,7 +273,8 @@ import console, \
con_set_cursor_pos, 'con_set_cursor_pos',\
con_write_string, 'con_write_string',\
con_get_flags, 'con_get_flags', \
con_set_flags, 'con_set_flags'
con_set_flags, 'con_set_flags', \
con_set_title, 'con_set_title'
s_libdir:
db '/sys/lib/'

View File

@ -15,6 +15,8 @@ void __stdcall con_write_string(const char* string, unsigned length);
short __stdcall con_getch2(void);
char* __stdcall con_gets(char*, unsigned);
extern void __stdcall (*con_set_title_ptr)(char*);
int __gui_mode;
void con_init_opt(unsigned w_w, unsigned w_h, unsigned s_w, unsigned s_h, const char* t){
@ -80,6 +82,7 @@ void __fini_conio()
con_exit(0);
}
void con_set_title(char *title)
{
con_set_title_ptr(title);
}