mirror of
https://github.com/tonytins/tomas.git
synced 2025-03-21 23:22:19 +00:00
Use latest quality of life changes in .NET 6 for the Terminal emulator
- Similar project changes to the kernal and resepctive assemblies will be taken more slowly
This commit is contained in:
parent
3deec1773f
commit
7530f8500b
7 changed files with 63 additions and 68 deletions
|
@ -1,6 +1,6 @@
|
||||||
# TOMAS
|
# TOMAS
|
||||||
|
|
||||||
TOMAS (**To**ny's **Ma**naged Operating **S**ystem) is a operating system based on the [COSMOS](https://github.com/CosmosOS/Cosmos) framework. It comes with a respective terminal emulator.
|
TOMAS (**To**ny's **Ma**naged Operating **S**ystem) is a hobby operating system based on the [COSMOS](https://github.com/CosmosOS/Cosmos) framework that comes with a respective terminal emulator.
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
|
@ -16,4 +16,4 @@ TOMAS (**To**ny's **Ma**naged Operating **S**ystem) is a operating system based
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
This project is licensed under the GPL 3.0 License - see the [LICENSE](LICENSE) file for details.
|
This project is licensed under the BSD 3-Clause license - see the [LICENSE](LICENSE) file for details.
|
||||||
|
|
|
@ -9,6 +9,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
|
||||||
ProjectSection(SolutionItems) = preProject
|
ProjectSection(SolutionItems) = preProject
|
||||||
.editorconfig = .editorconfig
|
.editorconfig = .editorconfig
|
||||||
..\Changelog.md = ..\Changelog.md
|
..\Changelog.md = ..\Changelog.md
|
||||||
|
..\.github\workflows\dotnet.yml = ..\.github\workflows\dotnet.yml
|
||||||
..\LICENSE = ..\LICENSE
|
..\LICENSE = ..\LICENSE
|
||||||
..\README.md = ..\README.md
|
..\README.md = ..\README.md
|
||||||
TOMAS.sln.licenseheader = TOMAS.sln.licenseheader
|
TOMAS.sln.licenseheader = TOMAS.sln.licenseheader
|
||||||
|
|
2
src/Tomas.Terminal/GlobalUsing.cs
Normal file
2
src/Tomas.Terminal/GlobalUsing.cs
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
global using Tomas.Common.Programs;
|
||||||
|
global using Tomas.Interface;
|
|
@ -1,11 +1,10 @@
|
||||||
// I license this project under the BSD 3-Clause license.
|
// I license this project under the BSD 3-Clause license.
|
||||||
// See the LICENSE file in the project root for more information.
|
// See the LICENSE file in the project root for more information.
|
||||||
using System;
|
|
||||||
|
|
||||||
namespace Tomas.Terminal
|
namespace Tomas.Terminal;
|
||||||
|
|
||||||
|
class Program
|
||||||
{
|
{
|
||||||
class Program
|
|
||||||
{
|
|
||||||
static void Main()
|
static void Main()
|
||||||
{
|
{
|
||||||
while (true)
|
while (true)
|
||||||
|
@ -38,5 +37,4 @@ namespace Tomas.Terminal
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
|
@ -1,6 +1,5 @@
|
||||||
// I license this project under the BSD 3-Clause license.
|
// I license this project under the BSD 3-Clause license.
|
||||||
// See the LICENSE file in the project root for more information.
|
// See the LICENSE file in the project root for more information.
|
||||||
using System;
|
|
||||||
using Tomas.Common;
|
using Tomas.Common;
|
||||||
using Tomas.Interface;
|
using Tomas.Interface;
|
||||||
|
|
||||||
|
|
|
@ -1,18 +1,14 @@
|
||||||
// I license this project under the BSD 3-Clause license.
|
// I license this project under the BSD 3-Clause license.
|
||||||
// See the LICENSE file in the project root for more information.
|
// See the LICENSE file in the project root for more information.
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using Tomas.Common.Programs;
|
|
||||||
using Tomas.Interface;
|
|
||||||
using Tomas.Terminal.Programs;
|
using Tomas.Terminal.Programs;
|
||||||
|
|
||||||
namespace Tomas.Terminal
|
namespace Tomas.Terminal;
|
||||||
|
|
||||||
|
public class Shell : IShell
|
||||||
{
|
{
|
||||||
public class Shell : IShell
|
|
||||||
{
|
|
||||||
const char SYMBOL = '$';
|
const char SYMBOL = '$';
|
||||||
|
|
||||||
public Dictionary<string, IProgram> Programs => new Dictionary<string, IProgram>()
|
public Dictionary<string, IProgram> Programs => new()
|
||||||
{
|
{
|
||||||
{"about", new About()},
|
{"about", new About()},
|
||||||
{"fensay", new FenSay()},
|
{"fensay", new FenSay()},
|
||||||
|
@ -29,5 +25,4 @@ namespace Tomas.Terminal
|
||||||
return readl;
|
return readl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
|
@ -3,8 +3,8 @@
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFramework>net6.0</TargetFramework>
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
<LangVersion>8</LangVersion>
|
<Nullable>enable</Nullable>
|
||||||
<Nullable>warnings</Nullable>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
Loading…
Add table
Reference in a new issue