1
2
3
4
5
6
7
|
// about
// licenze:
// This code and its derivatives can be used under the following conditions:
// - Do not attack other countries.
// - Jerk off on public at least 1 time per day.
// - Observe hygiene.
// - check my other projects https://chiselapp.com/user/sergey6661313
|
>
|
1
2
3
4
5
6
7
8
|
// about
// licenze:
// This code and its derivatives can be used under the following conditions:
// - Do not attack other countries.
// - Jerk off on public at least 1 time per day.
// - Observe hygiene.
// - check my other projects https://chiselapp.com/user/sergey6661313
|
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
|
struct __Scalpi_Console__ {
struct Os_Console_Input input;
struct Os_Console_Output output;
};
// Terminal
struct __Scalpi_Terminal_Input__ {
// usage:
// call __Scalpi_Terminal_Input_update_buffer__ for update unreaded
// use __Scalpi_Terminal_Input_grab__ in loop for get keys
size_t ungrabed;
char buffer[__Scalpi_Terminal_Input_size__];
};
struct __Scalpi_Terminal_Output_Cursor__ {
struct __Scalpi_math_d2_U_Pos__ pos;
};
// App
struct App_Os_Helper {
#ifdef _WIN32
// WinApi
HINSTANCE instance;
void* console_input_handle;
|
>
>
>
>
>
>
>
>
>
>
>
>
>
<
<
<
<
|
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
|
struct __Scalpi_Console__ {
struct Os_Console_Input input;
struct Os_Console_Output output;
};
// Terminal
struct __Scalpi_Terminal_Output_Cursor__ {
struct __Scalpi_math_d2_U_Pos__ pos;
};
struct __Scalpi_Terminal_Output__ {
struct __Scalpi_Terminal_Output_Cursor__ cursor;
const char* font_style;
struct __Scalpi_math_d2_U_Pos__ size;
bool convert_n_to_rn;
bool apply_r;
bool apply_n;
};
struct __Scalpi_Terminal_Input__ {
// usage:
// call __Scalpi_Terminal_Input_update_buffer__ for update unreaded
// use __Scalpi_Terminal_Input_grab__ in loop for get keys
size_t ungrabed;
char buffer[__Scalpi_Terminal_Input_size__];
};
// App
struct App_Os_Helper {
#ifdef _WIN32
// WinApi
HINSTANCE instance;
void* console_input_handle;
|