Skip to content

Instantly share code, notes, and snippets.

@marcusobrien
marcusobrien / settings.json
Created June 6, 2021 08:43
This is the profiles section of the settings.json configuration. It holds the terminal types, each one is from the "{" on line 6 to the "}," on line 12.
"profiles":
{
"defaults": {},
"list":
[
{
"commandline": "cmd.exe /K \"d:/scripts/cdffmpeg4.4.bat\"",
"guid": "{860a4840-31bd-43bb-aaa9-b2b4b74af000}",
"hidden": false,
"name": "FFMpeg 4.4 Command Prompt",
@marcusobrien
marcusobrien / settings.json
Created June 8, 2021 01:42
The whole settings.json for the Windows Terminal
{
"$schema": "https://aka.ms/terminal-profiles-schema",
// Add custom actions and keybindings to this array.
// To unbind a key combination from your defaults.json, set the command to "unbound".
// To learn more about actions and keybindings, visit https://aka.ms/terminal-keybindings
"actions":
[
// Copy and paste are bound to Ctrl+Shift+C and Ctrl+Shift+V in your defaults.json.
// These two lines additionally bind them to Ctrl+C and Ctrl+V.
// To learn more about selection, visit https://aka.ms/terminal-selection
void SMA1::Draw()
{
if (firmware.IsA1() == true)
{
drawNormal();
}
else if (firmware.IsA2() == true)
{
drawDoubleThick();
}
void SMA1_1.0::Draw()
{
drawNormal ();
}
void SMA1_2.0::Draw()
{
drawDoubleThick();
}
void SMA1::Draw()
{
firmware->Draw();
}
SMA1::SMA1(string firmwareType)
{
if (firmwareType=="1.0")
{
firmware = new firmware1_0();
}
}
colour SMA1::GetColourLED()
{
if (Firmware() == 1.0)
return colour::Blue;
else if (Firmware() == 2.0)
return colour::Green;
etc.
}
colour Firmware1_0::GetColourLED(
{
if (GetMuxType() == SMA1)
return colour::Blue;
else (GetMuxType() == SMA4)
return colour::Green;
}