Skip to content

Commit 57b3299

Browse files
Merge pull request #230 from aura-systems/impl-svgaIIconsole
Merge SVGAII changes.
2 parents 5b64368 + 61fc71a commit 57b3299

File tree

10 files changed

+30
-40
lines changed

10 files changed

+30
-40
lines changed

Aura Operating System/Aura_Boot/Aura_Boot.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<DebugEnabled>False</DebugEnabled>
1313
<DebugMode>Source</DebugMode>
1414
<IgnoreDebugStubAttribute>False</IgnoreDebugStubAttribute>
15-
<ISOFile>bin\Debug\net5.0\Aura_OS.iso</ISOFile>
15+
<ISOFile>bin\Debug\net5.0\Aura_Boot.iso</ISOFile>
1616
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
1717
<Profile>VMware</Profile>
1818
<Description>Use VMware Player or Workstation to deploy and debug.</Description>
@@ -39,7 +39,7 @@
3939
<ISO_PxeInterface>192.168.0.8</ISO_PxeInterface>
4040
<ISO_EnableGDB>False</ISO_EnableGDB>
4141
<ISO_StartCosmosGDB>False</ISO_StartCosmosGDB>
42-
<ISO_ISOFile>bin\Debug\net5.0\Aura_OS.iso</ISO_ISOFile>
42+
<ISO_ISOFile>bin\Debug\net5.0\Aura_Boot.iso</ISO_ISOFile>
4343
<VMware_StackCorruptionDetectionEnabled>True</VMware_StackCorruptionDetectionEnabled>
4444
<VMware_StackCorruptionDetectionLevel>MethodFooters</VMware_StackCorruptionDetectionLevel>
4545
<VMware_Description>Use VMware Player or Workstation to deploy and debug.</VMware_Description>
@@ -53,7 +53,7 @@
5353
<VMware_PxeInterface>192.168.0.8</VMware_PxeInterface>
5454
<VMware_EnableGDB>False</VMware_EnableGDB>
5555
<VMware_StartCosmosGDB>False</VMware_StartCosmosGDB>
56-
<VMware_ISOFile>bin\Debug\net5.0\Aura_OS.iso</VMware_ISOFile>
56+
<VMware_ISOFile>bin\Debug\net5.0\Aura_Boot.iso</VMware_ISOFile>
5757
<VMware_VMwareEdition>Workstation</VMware_VMwareEdition>
5858
<VMware_CompileVBEMultiboot>False</VMware_CompileVBEMultiboot>
5959
<VMware_VBEResolution>800x600x32</VMware_VBEResolution>
@@ -72,7 +72,7 @@
7272
<HyperV_VMwareEdition>Workstation</HyperV_VMwareEdition>
7373
<HyperV_EnableGDB>False</HyperV_EnableGDB>
7474
<HyperV_StartCosmosGDB>False</HyperV_StartCosmosGDB>
75-
<HyperV_ISOFile>bin\Debug\net5.0\Aura_OS.iso</HyperV_ISOFile>
75+
<HyperV_ISOFile>bin\Debug\net5.0\Aura_Boot.iso</HyperV_ISOFile>
7676
<HyperV_CompileVBEMultiboot>False</HyperV_CompileVBEMultiboot>
7777
<HyperV_VBEResolution>800x600x32</HyperV_VBEResolution>
7878
<HyperV_ExtractMapFile>False</HyperV_ExtractMapFile>
@@ -90,7 +90,7 @@
9090
<Bochs_VMwareEdition>Workstation</Bochs_VMwareEdition>
9191
<Bochs_EnableGDB>False</Bochs_EnableGDB>
9292
<Bochs_StartCosmosGDB>False</Bochs_StartCosmosGDB>
93-
<Bochs_ISOFile>bin\Debug\net5.0\Aura_OS.iso</Bochs_ISOFile>
93+
<Bochs_ISOFile>bin\Debug\net5.0\Aura_Boot.iso</Bochs_ISOFile>
9494
<Bochs_CompileVBEMultiboot>False</Bochs_CompileVBEMultiboot>
9595
<Bochs_VBEResolution>800x600x32</Bochs_VBEResolution>
9696
<Bochs_ExtractMapFile>False</Bochs_ExtractMapFile>

Aura Operating System/Aura_Boot/Kernel.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ protected override void BeforeRun()
3333

3434
#region Console Encoding Provider
3535

36-
if (Global.AConsole.Type == System.AConsole.ConsoleType.Graphical && Global.AConsole.Name != "SVGAII")
36+
Encoding.RegisterProvider(CosmosEncodingProvider.Instance);
37+
38+
if (Global.AConsole.Type == System.AConsole.ConsoleType.Graphical)
3739
{
38-
Encoding.RegisterProvider(CosmosEncodingProvider.Instance);
3940
Console.InputEncoding = Encoding.Unicode;
4041
Console.OutputEncoding = Encoding.Unicode;
4142
}
42-
else if (Global.AConsole.Type == System.AConsole.ConsoleType.Text)
43+
else
4344
{
44-
Encoding.RegisterProvider(CosmosEncodingProvider.Instance);
4545
Console.InputEncoding = Encoding.GetEncoding(437);
4646
Console.OutputEncoding = Encoding.GetEncoding(437);
4747
}

Aura Operating System/Aura_OS/Global.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class Global
1313

1414
public static Setup setup = new Setup();
1515
public static bool running;
16-
public static string version = "0.5.2";
16+
public static string version = "0.5.3";
1717
public static string revision = VersionInfo.revision;
1818
public static string current_directory = @"0:\";
1919
public static string langSelected = "en_US";

Aura Operating System/Aura_OS/Properties/VersionInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ namespace Aura_OS
22
{
33
public class VersionInfo
44
{
5-
public static string revision = "170120222212";
5+
public static string revision = "180120220352";
66
}
77
}

Aura Operating System/Aura_OS/System/CustomConsole.cs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ public class CustomConsole
1515
public static void WriteLineInfo(string text)
1616
{
1717
Console.ForegroundColor = ConsoleColor.Cyan;
18-
Global.AConsole.Write("[Info] ".ToCharArray());
18+
Console.Write("[Info] ");
1919
Console.ForegroundColor = ConsoleColor.White;
20-
Global.AConsole.Write((text + "\n").ToCharArray());
20+
Console.Write(text + "\n");
2121
Global.debugger.Send("[Info] " + text);
2222
}
2323
public static void WriteLineWarning(string text)
2424
{
2525
Console.ForegroundColor = ConsoleColor.Yellow;
26-
Global.AConsole.Write("[WARNING] ".ToCharArray());
26+
Console.Write("[WARNING] ");
2727
Console.ForegroundColor = ConsoleColor.White;
28-
Global.AConsole.Write((text + "\n").ToCharArray());
28+
Console.Write(text + "\n");
2929
Global.debugger.Send("[WARNING] " + text);
3030
}
3131
/// <summary>
@@ -35,29 +35,29 @@ public static void WriteLineWarning(string text)
3535
/// <param name="tipColor"></param>
3636
/// <param name="text"></param>
3737
/// <param name="tipText"></param>
38-
public static void WriteLineCustom(ConsoleColor tipColor,string text,string tipText)
38+
public static void WriteLineCustom(ConsoleColor tipColor, string text, string tipText)
3939
{
4040
Console.ForegroundColor = tipColor;
41-
Global.AConsole.Write(("[" + tipText + "] ").ToCharArray());
41+
Console.Write("[" + tipText + "] ");
4242
Console.ForegroundColor = ConsoleColor.White;
43-
Global.AConsole.Write((text + "\n").ToCharArray());
43+
Console.Write(text + "\n");
4444
Global.debugger.Send("[" + tipText + "] " + text);
4545
}
4646
public static void WriteLineOK(string text)
4747
{
4848
Console.ForegroundColor = ConsoleColor.Green;
49-
Global.AConsole.Write("[OK] ".ToCharArray());
49+
Console.Write("[OK] ");
5050
Console.ForegroundColor = ConsoleColor.White;
51-
Global.AConsole.Write((text + "\n").ToCharArray());
51+
Console.Write(text + "\n");
5252
Global.debugger.Send("[OK] " + text);
5353
}
5454
public static void WriteLineError(string text)
5555
{
5656
Console.ForegroundColor = ConsoleColor.DarkRed;
57-
Global.AConsole.Write(("[Error] ").ToCharArray());
57+
Console.Write("[Error] ");
5858
Console.ForegroundColor = ConsoleColor.White;
59-
Global.AConsole.Write((text + "\n").ToCharArray());
59+
Console.Write(text + "\n");
6060
Global.debugger.Send("[Error] " + text);
6161
}
6262
}
63-
}
63+
}

Aura Operating System/Aura_OS/System/Shell/cmdIntr/Settings/Settings.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
namespace Aura_OS.System.Shell.cmdIntr.Settings
1212
{
13-
class Settings
13+
/*class Settings
1414
{
1515
private static string HelpInfo = "";
1616
@@ -20,7 +20,7 @@ class Settings
2020
public static string HI
2121
{
2222
get { return HelpInfo; }
23-
set { HelpInfo = value; /*PUSHED OUT VALUE (in)*/}
23+
set { HelpInfo = value; /*PUSHED OUT VALUE (in)*//*}
2424
}
2525
2626
/// <summary>
@@ -176,5 +176,5 @@ public static void c_Settings(string settings)
176176
}
177177
178178
}
179-
}
179+
}*/
180180
}

Aura Operating System/Aura_OS/System/Shell/cmdIntr/Util/Help.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ private ReturnInfo ExecuteHelp(bool showaliases)
7171
Console.WriteLine(" (" + command.Description + ")");
7272

7373
count++;
74-
if (count == Global.AConsole.Rows)
74+
if (count == Global.AConsole.Rows - 3)
7575
{
7676
Console.ReadKey();
7777
count = 0;

Aura Operating System/Aura_OS/System/Shell/cmdIntr/Util/Lspci.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public override ReturnInfo Execute()
3030
{
3131
Console.WriteLine(Conversion.D2(device.bus) + ":" + Conversion.D2(device.slot) + ":" + Conversion.D2(device.function) + " - " + "0x" + Conversion.D4(Conversion.DecToHex(device.VendorID)) + ":0x" + Conversion.D4(Conversion.DecToHex(device.DeviceID)) + " : " + DeviceClass.GetTypeString(device) + ": " + DeviceClass.GetDeviceString(device));
3232
count++;
33-
if (count == Global.AConsole.Rows)
33+
if (count == Global.AConsole.Rows - 4)
3434
{
3535
Console.ReadKey();
3636
count = 0;

Aura Operating System/Aura_Plugs/HAL/Global.cs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,9 @@ public static class Global
2121

2222
static public void Init(TextScreenBase textScreen, bool InitScrollWheel, bool InitPS2, bool InitNetwork, bool IDEInit)
2323
{
24-
Cosmos.HAL.Global.mDebugger.Send("Before Core.Global.Init");
25-
Cosmos.Core.Global.Init();
26-
2724
PCI.Setup();
28-
var _SVGAIIDevice = PCI.GetDevice(VendorID.VMWare, DeviceID.SVGAIIAdapter);
2925

30-
if (VBEAvailable() || (_SVGAIIDevice != null && PCI.Exists(_SVGAIIDevice)))
26+
if (VBEAvailable())
3127
{
3228
Aura_OS.Global.AConsole = new Aura_OS.System.AConsole.GraphicConsole();
3329
}
@@ -36,11 +32,10 @@ static public void Init(TextScreenBase textScreen, bool InitScrollWheel, bool In
3632
Aura_OS.Global.AConsole = new Aura_OS.System.AConsole.VGAConsole(textScreen);
3733
}
3834

39-
Aura_OS.Global.AConsole.Write(("[Aura Operating System v" + Aura_OS.Global.version + " - Made by valentinbreiz and geomtech]\n").ToCharArray());
35+
Console.WriteLine("[Aura Operating System v" + Aura_OS.Global.version + " - Made by valentinbreiz and geomtech]");
4036
Aura_OS.System.CustomConsole.WriteLineInfo("Starting Cosmos kernel...");
4137

4238
Aura_OS.System.CustomConsole.WriteLineOK("PCI Devices Scan");
43-
Aura_OS.System.CustomConsole.WriteLineOK("Plugged Console");
4439

4540
ACPI.Start();
4641
Aura_OS.System.CustomConsole.WriteLineOK("ACPI Initialization");
@@ -58,7 +53,6 @@ static public void Init(TextScreenBase textScreen, bool InitScrollWheel, bool In
5853
Aura_OS.System.CustomConsole.WriteLineOK("Network Devices Initialization");
5954

6055
Aura_OS.System.CustomConsole.WriteLineOK("Kernel successfully initialized!");
61-
6256
}
6357

6458
/// <summary>

Aura Operating System/Aura_Plugs/System/ConsoleImpl.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -861,10 +861,6 @@ public static void Write(string aText)
861861
{
862862
GetConsole().Write(aText.ToCharArray());
863863
}
864-
else
865-
{
866-
GetConsole().Write(aText.ToCharArray());
867-
}
868864
}
869865

870866
public static void Write(uint aInt) => Write(aInt.ToString());

0 commit comments

Comments
 (0)