Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 13 additions & 6 deletions lib/init.g
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ function( prefix, values, suffix )
end);

BindGlobal( "ShowKernelInformation", function()
local sysdate, btop, vert, bbot, config, str, gap;
local sysdate, btop, bmid, bbot, config, str, gap;

if GAPInfo.Date <> "today" then
sysdate := " of ";
Expand All @@ -447,19 +447,26 @@ BindGlobal( "ShowKernelInformation", function()
fi;

if GAPInfo.TermEncoding = "UTF-8" then
btop := "┌───────┐\c"; vert := "│"; bbot := "└───────┘\c";
# Includes colour, which causes line-wrapping issues at 80 columns
btop := " \033[94m● \033[1;31mG\033[0m";
bmid := "\033[92m● \033[91m● \033[1;31mA\033[0m";
bbot := " \033[93m● \033[1;31mP\033[0m";
else
btop := "*********"; vert := "*"; bbot := btop;
btop := " o G";
bmid := "o o A";
bbot := " o P";
fi;
if IsHPCGAP then
gap := "HPC-GAP";
else
gap := "GAP";
fi;
Print( " ",btop," ",gap," ", GAPInfo.BuildVersion,
Print( "\n", # Could remove first and last newlines for a more compact look
" ",btop," ",gap," ", GAPInfo.BuildVersion,
sysdate, "\n",
" ",vert," GAP ",vert," https://www.gap-system.org\n",
" ",bbot," Architecture: ", GAPInfo.Architecture, "\n" );
" ",bmid," https://www.gap-system.org\n",
" ",bbot," Architecture: ", GAPInfo.Architecture, "\n",
"\n" );
if IsHPCGAP then
Print( " Maximum concurrent threads: ",
GAPInfo.KernelInfo.NUM_CPUS, "\n");
Expand Down
Loading