ScalpiEditor

Diff
Login

Diff

Differences From Artifact [e7b979caa9]:

To Artifact [5e811700ca]:


499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
            #define __ConsoleAnsi_output_FontStyle_underline__             "4"
            #define __ConsoleAnsi_output_FontStyle_conceal__               "8"
            #define __ConsoleAnsi_output_FontStyle_fraktur__               "20"
            #define __ConsoleAnsi_output_FontStyle_unbold__                "21;24"
            #define __ConsoleAnsi_output_FontStyle_set_color__             "38"
            #define __ConsoleAnsi_output_FontStyle_set_bg_color__          "48"
            
            #define __ConsoleAnsi_output_FontStyle_start__                 __ConsoleAnsi_control__
            #define __ConsoleAnsiOutputFontStyle_reset__                 __ConsoleAnsi_output_FontStyle_start__ __ConsoleAnsi_output_FontStyle_reset__ __ConsoleAnsi_output_FontStyle_end__
        
        // mouse
            #define Scalpi_ansi_input_mouse_release  __ConsoleAnsi_control__  "?1000l"
            #define Scalpi_ansi_input_mouse_grab     __ConsoleAnsi_control__  "?1000h"
        // settings
            #define __ConsoleAnsiOutputSettings_enableLineWrap__   __ConsoleAnsi_control__ "?7h"
            #define __ConsoleAnsiOutputSettings_disableLineWrap__  __ConsoleAnsi_control__ "?7l"
    // # __OsFilePath_separator__
        #if __target_os__ == __TargetOs_windows__
            #define __OsFilePath_separator__ "\\"
        #elif __target_os__ == __TargetOs_linux__
            #define __OsFilePath_separator__ "/"
        #else
            #error "not implemented current __target_os__ or not defined. (expected __TargetOs_ value)"
        #endif
    #define Base64_standard_alphabet_chars "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
    // AppEditorTheme
        #define __AppEditorTheme_reset__ = ( ""                \
            __ConsoleAnsi_output_FontStyle_start__         \
            __ConsoleAnsi_output_FontStyle_reset__         \
            __ConsoleAnsi_output_FontStyle_sep__           \
            __ConsoleAnsi_output_FontStyle_bg_color_zero__ \
            __ConsoleAnsi_output_FontStyle_sep__           \
            __ConsoleAnsi_output_FontStyle_color_zero__    \
            __ConsoleAnsi_output_FontStyle_end__           \
        );
// basic types
    // scalpi
        // # __ConsoleAnsiInputKey__
            typedef
                uint64_t
                __ConsoleAnsiInputKey__
            ;







|
|

















|






|
<







499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532

533
534
535
536
537
538
539
            #define __ConsoleAnsi_output_FontStyle_underline__             "4"
            #define __ConsoleAnsi_output_FontStyle_conceal__               "8"
            #define __ConsoleAnsi_output_FontStyle_fraktur__               "20"
            #define __ConsoleAnsi_output_FontStyle_unbold__                "21;24"
            #define __ConsoleAnsi_output_FontStyle_set_color__             "38"
            #define __ConsoleAnsi_output_FontStyle_set_bg_color__          "48"
            
            #define __ConsoleAnsi_output_FontStyle_start__  __ConsoleAnsi_control__
            #define __ConsoleAnsiOutputFontStyle_reset__    __ConsoleAnsi_output_FontStyle_start__ __ConsoleAnsi_output_FontStyle_reset__ __ConsoleAnsi_output_FontStyle_end__
        
        // mouse
            #define Scalpi_ansi_input_mouse_release  __ConsoleAnsi_control__  "?1000l"
            #define Scalpi_ansi_input_mouse_grab     __ConsoleAnsi_control__  "?1000h"
        // settings
            #define __ConsoleAnsiOutputSettings_enableLineWrap__   __ConsoleAnsi_control__ "?7h"
            #define __ConsoleAnsiOutputSettings_disableLineWrap__  __ConsoleAnsi_control__ "?7l"
    // # __OsFilePath_separator__
        #if __target_os__ == __TargetOs_windows__
            #define __OsFilePath_separator__ "\\"
        #elif __target_os__ == __TargetOs_linux__
            #define __OsFilePath_separator__ "/"
        #else
            #error "not implemented current __target_os__ or not defined. (expected __TargetOs_ value)"
        #endif
    #define Base64_standard_alphabet_chars "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
    // AppEditorTheme
        #define __AppEditorTheme_reset__  \
            __ConsoleAnsi_output_FontStyle_start__         \
            __ConsoleAnsi_output_FontStyle_reset__         \
            __ConsoleAnsi_output_FontStyle_sep__           \
            __ConsoleAnsi_output_FontStyle_bg_color_zero__ \
            __ConsoleAnsi_output_FontStyle_sep__           \
            __ConsoleAnsi_output_FontStyle_color_zero__    \
            __ConsoleAnsi_output_FontStyle_end__

// basic types
    // scalpi
        // # __ConsoleAnsiInputKey__
            typedef
                uint64_t
                __ConsoleAnsiInputKey__
            ;
884
885
886
887
888
889
890









891
892
893
894
895
896
897
                struct __MemTree__         cutted;
                struct __AppEditorLine__   bakup_line;
                struct __math_d2_U_Pos__   offset;
                size_t                     symbol;
                bool                       need_redraw;
                bool                       need_draw_line_num;
            };









        // # App
            struct App {
                struct __OsHelper__      __App_osHelper__;
                struct __Logger__  logger;
                uint64_t                 tick;
            };
// function prototypes







>
>
>
>
>
>
>
>
>







883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
                struct __MemTree__         cutted;
                struct __AppEditorLine__   bakup_line;
                struct __math_d2_U_Pos__   offset;
                size_t                     symbol;
                bool                       need_redraw;
                bool                       need_draw_line_num;
            };
        // # __AppEditorViewsGoToLine__
            struct  __AppEditorViewsGoToLine__ {
                struct __AppEditorLine__         line;
                const struct __AppEditorViewsVTable__  *context_vtable;
                void                             *context;
                size_t                           symbol;
                struct __math_d2_U_Pos__         offset;
                bool                             need_redraw;
            };
        // # App
            struct App {
                struct __OsHelper__      __App_osHelper__;
                struct __Logger__  logger;
                uint64_t                 tick;
            };
// function prototypes