Rev 9354 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9354 | Rev 9716 | ||
---|---|---|---|
Line 2... | Line 2... | ||
2 | #include |
2 | #include |
3 | #include |
3 | #include |
4 | #include "io.h" |
4 | #include "io.h" |
5 | #include |
5 | #include |
Line 6... | Line -... | ||
6 | - | ||
7 | 6 | ||
8 | void load_libconsole(); |
7 | extern void load_libconsole(); |
9 | void __stdcall con_init(unsigned w_w, unsigned w_h, unsigned s_w, unsigned s_h, const char* t); |
8 | extern void __stdcall con_init(unsigned w_w, unsigned w_h, unsigned s_w, unsigned s_h, const char* t); |
10 | void __stdcall con_exit(char bCloseWindow); |
- | |
11 | unsigned __stdcall con_get_flags(void); |
- | |
12 | unsigned __stdcall con_set_flags(unsigned new_flags); |
- | |
13 | void __stdcall con_cls(void); |
9 | extern void __stdcall con_exit(char bCloseWindow); |
14 | void __stdcall con_write_string(const char* string, unsigned length); |
- | |
15 | short __stdcall con_getch2(void); |
10 | extern void __stdcall con_write_string(const char* string, unsigned length); |
16 | char* __stdcall con_gets(char*, unsigned); |
- | |
17 | - | ||
Line 18... | Line 11... | ||
18 | extern void __stdcall (*con_set_title_ptr)(char*); |
11 | extern char* __stdcall con_gets(char*, unsigned); |
Line 19... | Line -... | ||
19 | - | ||
20 | int __gui_mode; |
- | |
21 | - | ||
22 | void con_init_opt(unsigned w_w, unsigned w_h, unsigned s_w, unsigned s_h, const char* t){ |
- | |
23 | con_init(w_w, w_h, s_w, s_h, t); |
12 | |
24 | } |
13 | int __gui_mode; |
25 | 14 | ||
26 | static int console_read(const char *path, void *buff, |
15 | static int console_read(const char *path, void *buff, |
27 | size_t offset, size_t count, size_t *done) |
16 | size_t offset, size_t count, size_t *done) |
Line 79... | Line 68... | ||
79 | 68 | ||
80 | void __fini_conio() |
69 | void __fini_conio() |
81 | { |
70 | { |
82 | con_exit(0); |
71 | con_exit(0); |
83 | } |
- | |
84 | - | ||
85 | void con_set_title(char *title) |
- | |
86 | { |
- | |
87 | con_set_title_ptr(title); |
- |