mirror of
https://github.com/beefytech/Beef.git
synced 2025-07-06 00:05:59 +02:00
Embedded console / terminal support
This commit is contained in:
parent
60817eec48
commit
20a8e3327c
28 changed files with 2317 additions and 690 deletions
|
@ -898,8 +898,10 @@ namespace IDE
|
|||
Add("Show Output", "Ctrl+Alt+O");
|
||||
Add("Show Profiler", "Ctrl+Alt+P");
|
||||
Add("Show QuickWatch", "Shift+Alt+W");
|
||||
Add("Show Threads", "Ctrl+Alt+T");
|
||||
Add("Show Threads", "Ctrl+Alt+H");
|
||||
Add("Show Watches", "Ctrl+Alt+W");
|
||||
Add("Show Console", "Ctrl+Alt+N");
|
||||
Add("Show Terminal", "Ctrl+Alt+T");
|
||||
Add("Show Workspace Explorer", "Ctrl+Alt+S");
|
||||
Add("Start Debugging", "F5");
|
||||
Add("Start Without Debugging", "Ctrl+F5");
|
||||
|
@ -1097,6 +1099,14 @@ namespace IDE
|
|||
public bool mDependencies;
|
||||
}
|
||||
|
||||
public enum ConsoleKind
|
||||
{
|
||||
Native,
|
||||
Embedded,
|
||||
RedirectToOutput,
|
||||
RedirectToImmediate,
|
||||
}
|
||||
|
||||
public bool mLoadedSettings;
|
||||
public String mSettingFileText ~ delete _;
|
||||
public DateTime mSettingFileDateTime;
|
||||
|
@ -1110,6 +1120,8 @@ namespace IDE
|
|||
public RecentFiles mRecentFiles = new RecentFiles() ~ delete _;
|
||||
public String mWakaTimeKey = new .() ~ delete _;
|
||||
public String mWindowsTerminal = new .("Powershell") ~ delete _;
|
||||
public ConsoleKind mDebugConsoleKind;
|
||||
public bool mAlwaysEnableConsole;
|
||||
public String mEmscriptenPath = new .() ~ delete _;
|
||||
public bool mEnableDevMode;
|
||||
public TutorialsFinished mTutorialsFinished = .();
|
||||
|
@ -1167,8 +1179,12 @@ namespace IDE
|
|||
mDebuggerSettings.Serialize(sd);
|
||||
using (sd.CreateObject("VisualStudio"))
|
||||
mVSSettings.Serialize(sd);
|
||||
using (sd.CreateObject("Terminal"))
|
||||
using (sd.CreateObject("Console"))
|
||||
{
|
||||
sd.Add("WindowsTerminal", mWindowsTerminal);
|
||||
sd.Add("DebugConsole", mDebugConsoleKind);
|
||||
sd.Add("AlwaysEnableConsole", mAlwaysEnableConsole);
|
||||
}
|
||||
using (sd.CreateObject("Wasm"))
|
||||
sd.Add("EmscriptenPath", mEmscriptenPath);
|
||||
|
||||
|
@ -1258,8 +1274,12 @@ namespace IDE
|
|||
mDebuggerSettings.Deserialize(sd);
|
||||
using (sd.Open("VisualStudio"))
|
||||
mVSSettings.Deserialize(sd);
|
||||
using (sd.Open("Terminal"))
|
||||
using (sd.Open("Console"))
|
||||
{
|
||||
sd.Get("WindowsTerminal", mWindowsTerminal);
|
||||
mDebugConsoleKind = sd.GetEnum<ConsoleKind>("DebugConsole", .Native);
|
||||
mAlwaysEnableConsole = sd.GetBool("AlwaysEnableConsole");
|
||||
}
|
||||
using (sd.Open("Wasm"))
|
||||
sd.Get("EmscriptenPath", mEmscriptenPath);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue