You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Area of Cosmos - What area of Cosmos are we dealing with?
Cosmos Inner-code bug.
Expected Behaviour - What do you think that should happen?
Identical to .NET Console behavior must be expected just with a 80x25 size.
Actual Behaviour - What unexpectedly happens?
Proper functioning of placements of text in code
Reproduction - How did you get this error to appear?
The code is:
publicconstintCWidth=80;publicconstintCHeight=25;publicconststringkernelName="Test";publicconststringkernelVersion="v1.0";publicconstConsoleColorconsoleKernelAccentColor=ConsoleColor.DarkCyan;publicstaticintfinalSelection=0;publicstaticvoidRun(){vardisks=newList<string>(){"0:\\","1:\\","2:\\"};Console.BackgroundColor=consoleKernelAccentColor;Console.ForegroundColor=ConsoleColor.White;Console.Clear();Console.WriteLine(kernelName+" "+kernelVersion+" Installer (via Cosmares)");Console.CursorLeft=0;Console.CursorTop=CHeight;Console.BackgroundColor=ConsoleColor.DarkGray;Console.Write(newstring(' ',CWidth));Console.CursorLeft=0;Console.CursorTop=CHeight;Console.ForegroundColor=ConsoleColor.Black;Console.Write("Use arrow keys to move, space to select and enter to next.");varwinX=CWidth/16;varwinY=3;varwinWidth=CWidth-(CWidth/16)-5;varwinHeight=CHeight-5;Console.BackgroundColor=ConsoleColor.White;for(vari=0;i<winHeight;i++){Console.CursorLeft=winX;Console.CursorTop=winY+i;Console.Write(newstring(' ',winWidth));}Console.CursorLeft=winX+2;Console.CursorTop=winY+1;Console.Write("Select a disk:");varboxX=winX+4;varboxY=winY+3;varboxWidth=winWidth-8;// (winWidth - (4*2))varboxHeight=winHeight-6;// (winHeight - (3*2))Console.BackgroundColor=ConsoleColor.Gray;for(vari=0;i<boxHeight;i++){Console.CursorLeft=boxX;Console.CursorTop=boxY+i;Console.Write(newstring(' ',boxWidth));}varselected=0;varselectedVal=disks[selected];varhovered=0;varhoveredVal=disks[hovered];update:vardiskIndex=0;for(vari=0;i<disks.Count;i++){if(i==selected){Console.BackgroundColor=consoleKernelAccentColor;}elseif(i==hovered){Console.BackgroundColor=ConsoleColor.DarkGray;}Console.CursorLeft=boxX;Console.CursorTop=boxY+i;Console.Write(newstring(' ',boxWidth));Console.CursorLeft=boxX;Console.CursorTop=boxY+i;Console.Write(disks[i]);Console.BackgroundColor=ConsoleColor.Gray;}varkey=Console.ReadKey(true);while(key.Modifiers!=ConsoleModifiers.Control&&key.Modifiers!=ConsoleModifiers.Shift&&key.Key!=ConsoleKey.Escape){if(key.Key==ConsoleKey.UpArrow&&hovered-1>-1){hovered--;gotoupdate;}elseif(key.Key==ConsoleKey.DownArrow&&hovered+1<disks.Count){hovered++;gotoupdate;}elseif(key.Key==ConsoleKey.Enter){finalSelection=selected;return;}elseif(key.Key==ConsoleKey.Spacebar){selected=hovered;gotoupdate;}key=Console.ReadKey(true);}return;}
Version - Were you using the User Kit or Dev Kit? And what User Kit version or Dev Kit commit (Cosmos, IL2CPU, X#)?
It is the latest DevKit and its part of the main cosmos base.
Screenshots:
Expected first, and cosmos second
The CWidth and CHeight are used in both code so the 80x25 console can be used in the .NET one
The text was updated successfully, but these errors were encountered:
Area of Cosmos - What area of Cosmos are we dealing with?
Cosmos Inner-code bug.
Expected Behaviour - What do you think that should happen?
Identical to .NET Console behavior must be expected just with a 80x25 size.
Actual Behaviour - What unexpectedly happens?
Proper functioning of placements of text in code
Reproduction - How did you get this error to appear?
The code is:
Version - Were you using the User Kit or Dev Kit? And what User Kit version or Dev Kit commit (Cosmos, IL2CPU, X#)?
It is the latest DevKit and its part of the main cosmos base.
Screenshots:
Expected first, and cosmos second
The
CWidth
andCHeight
are used in both code so the 80x25 console can be used in the .NET oneThe text was updated successfully, but these errors were encountered: