Check-in [8e1bed5819]
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 | descriptor
Files: files | file ages | folders
SHA1:8e1bed58196839596093f5c78798ad3b58841161
User & Date: maxi 2018-11-13 06:39:52
Context
2018-12-14
16:05
some asm_shims added Leaf check-in: d97335e6ed user: Alisad tags: descriptor
2018-11-13
06:39
Added trunk's greeter check-in: 8e1bed5819 user: maxi tags: descriptor
06:32
merged trunk into descriptor check-in: 0a2b15c728 user: maxi tags: descriptor
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to include/misc/greeter.h.

5
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
{
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 << "\n\n  ____ _     ___ _   _ _       _   ___\n"
                    << " / ___| |   |_ _| \\ | | |     / | / _ \\ \n"
                    << "| |   | |    | ||  \\| | |     | || | | |\n"
                    << "| |___| |___ | || |\\  | |___  | || |_| |\n"
                    << " \\____|_____|___|_| \\_|_____| |_(_)___/ \n\n\n";

    Termutils::cout << "VGA & 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)
{
    if (mem)
    {

        char *t = Paging::Physical::memory->malloc(2048);
        bool test = Paging::Physical::memory->free(t);

        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






|
<
<
<
<
<
|









<
|
>
|
|
>
|
|
|
|
|
|
|
|





|
5
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
{
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