Check-in [113d0291b5]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Added trunk's greeter
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:113d0291b52018378f6d1251ff8248693f61565e
User & Date: maxi 2018-11-13 06:38:03
Context
2018-12-14
16:18
refactored paging_init.cpp Leaf check-in: c00b7817c2 user: maxi tags: trunk
2018-11-13
06:38
Added trunk's greeter check-in: 113d0291b5 user: maxi tags: trunk
06:34
fixed bugs in c++-style casts check-in: dc202cee4b user: maxi tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to include/misc/greeter.h.

6
7
8
9
10
11
12





13
14
15
16
17
18
19
20
21
22


23
24
25
26
27
28
29
30
31
32

33
34
35
36
37
38
auto color_std = VGA::make_color_mode(VGA::color::WHITE);
auto color_em = VGA::make_color_mode(VGA::color::GREEN);
auto color_err = VGA::make_color_mode(VGA::color::RED);

void display_greeting()
{
    Termutils::cout << VGA::make_color_mode (VGA::color::LIGHT_RED, VGA::color::DARK_GREY) << "\n\t\t\t\t\tCLINL 0.01 \"C++ Linl Is Not Linux\"\n\t\t\t\t\t\t\t\"We'll get there!\"\n\n" << Termutils::cl_text





                    << "\n\nVGA & Termutils: [" << color_em << "OK" << color_std << "]" << Termutils::endl
                    << "\tInitialised at " << Termutils::terminal_output::int_mode::hex << (intptr_t)VGA::text_buffer.begin() << Termutils::endl
                    << Termutils::terminal_output::int_mode::dec
                    << "\tVGA Textmode cols\t=\t" << BIOS::BDA.get_text_mode_cols() << Termutils::endl
                    << "\tVGA Textmode rows\t=\t" << BIOS::BDA.get_text_mode_rows() << Termutils::endl
                    << "\tVGA Textmode mem \t=\t" << BIOS::BDA.get_video_byte_size() << Termutils::endl;
}

void display_mem_info(auto mem)
{


    char *t = Paging::Physical::memory->malloc(2048);
    bool test = Paging::Physical::memory->free(t);
    Termutils::cout << "Check Memory Information ";
    if (t && test && mem)
    {
        Termutils::cout << "[" << color_em << "OK" << color_std << "]" << Termutils::endl;
    }
    else
    {
        Termutils::cout << "[" << color_err << "KO" << color_std << "]" << Termutils::endl;

    }
    Termutils::cout
        << "\t" << (mem >> 20) << "MiB detected" << Termutils::endl
        << Termutils::endl;
}
} // namespace INIT






>
>
>
>
>










>
>










>






6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
auto color_std = VGA::make_color_mode(VGA::color::WHITE);
auto color_em = VGA::make_color_mode(VGA::color::GREEN);
auto color_err = VGA::make_color_mode(VGA::color::RED);

void display_greeting()
{
    Termutils::cout << VGA::make_color_mode (VGA::color::LIGHT_RED, VGA::color::DARK_GREY) << "\n\t\t\t\t\tCLINL 0.01 \"C++ Linl Is Not Linux\"\n\t\t\t\t\t\t\t\"We'll get there!\"\n\n" << Termutils::cl_text





                    << "\n\nVGA & Termutils: [" << color_em << "OK" << color_std << "]" << Termutils::endl
                    << "\tInitialised at " << Termutils::terminal_output::int_mode::hex << (intptr_t)VGA::text_buffer.begin() << Termutils::endl
                    << Termutils::terminal_output::int_mode::dec
                    << "\tVGA Textmode cols\t=\t" << BIOS::BDA.get_text_mode_cols() << Termutils::endl
                    << "\tVGA Textmode rows\t=\t" << BIOS::BDA.get_text_mode_rows() << Termutils::endl
                    << "\tVGA Textmode mem \t=\t" << BIOS::BDA.get_video_byte_size() << Termutils::endl;
}

void display_mem_info(auto mem)
{


    char *t = Paging::Physical::memory->malloc(2048);
    bool test = Paging::Physical::memory->free(t);
    Termutils::cout << "Check Memory Information ";
    if (t && test && mem)
    {
        Termutils::cout << "[" << color_em << "OK" << color_std << "]" << Termutils::endl;
    }
    else
    {
        Termutils::cout << "[" << color_err << "KO" << color_std << "]" << Termutils::endl;

    }
    Termutils::cout
        << "\t" << (mem >> 20) << "MiB detected" << Termutils::endl
        << Termutils::endl;
}
} // namespace INIT