Skip to content

Commit 19edbf0

Browse files
authored
Docs: PuTTY (and more) (BornToBeRoot#2337)
* Docs: Add info to conenct via profile * Docs: PuTTY * Docs: PowerShell * Chore: Docs and refactoring * Docs: More docs * Chore: Refactoring * Docs: BornToBeRoot#2337
1 parent e2fe25d commit 19edbf0

25 files changed

Lines changed: 797 additions & 123 deletions

Source/NETworkManager.Localization/Resources/Strings.Designer.cs

Lines changed: 2 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Source/NETworkManager.Localization/Resources/Strings.resx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,9 +1014,6 @@ Create one...</value>
10141014
<data name="PuTTYProcessHasEnded" xml:space="preserve">
10151015
<value>PuTTY process has ended!</value>
10161016
</data>
1017-
<data name="PuTTYProfile" xml:space="preserve">
1018-
<value>PuTTY profile</value>
1019-
</data>
10201017
<data name="Questions" xml:space="preserve">
10211018
<value>Questions</value>
10221019
</data>
@@ -1090,7 +1087,7 @@ Create one...</value>
10901087
<value>Serial</value>
10911088
</data>
10921089
<data name="SerialLine" xml:space="preserve">
1093-
<value>SerialLine</value>
1090+
<value>Serial line</value>
10941091
</data>
10951092
<data name="Service" xml:space="preserve">
10961093
<value>Service</value>
@@ -2692,7 +2689,7 @@ $$hostname$$ --&gt; Hostname</value>
26922689
<value>SSH log</value>
26932690
</data>
26942691
<data name="PuTTYLogMode_SSHRawLog" xml:space="preserve">
2695-
<value>SSH and Raw Log</value>
2692+
<value>SSH and Raw log</value>
26962693
</data>
26972694
<data name="EnterValidFileName" xml:space="preserve">
26982695
<value>Enter a valid file name!</value>

Source/NETworkManager.Settings/Application/PuTTY.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public static int GetPortOrBaudByConnectionMode(ConnectionMode mode)
2525
portOrBaud = SettingsManager.Current.PuTTY_RloginPort;
2626
break;
2727
case ConnectionMode.RAW:
28-
portOrBaud = SettingsManager.Current.PuTTY_DefaultRaw;
28+
portOrBaud = SettingsManager.Current.PuTTY_RawPort;
2929
break;
3030
case ConnectionMode.Serial:
3131
portOrBaud = SettingsManager.Current.PuTTY_BaudRate;

Source/NETworkManager.Settings/GlobalStaticConfiguration.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public static class GlobalStaticConfiguration
2929
public static double Profile_MaxWidthExpanded => 500;
3030
public static double Profile_FloatPointFix => 1.0;
3131
public static int Profile_EncryptionKeySize => 256;
32-
public static int Profile_EncryptionIterations => 1000000;
32+
public static int Profile_EncryptionIterations => 1000000;
3333

3434
// Filter for file dialog
3535
public static string ApplicationFileExtensionFilter => "Application (*.exe)|*.exe";
@@ -152,9 +152,9 @@ public static class GlobalStaticConfiguration
152152
public static int PuTTY_SSHPort => 22;
153153
public static string PuTTY_SerialLine => "COM1";
154154
public static int PuTTY_TelnetPort => 23;
155-
public static int PuTTY_RloginPort => 513;
156155
public static int PuTTY_BaudRate => 9600;
157-
public static int PuTTY_Raw => 0;
156+
public static int PuTTY_RloginPort => 513;
157+
public static int PuTTY_RawPort => 23;
158158

159159
// Application: AWSSessionManager
160160
public static bool AWSSessionManager_EnableSyncInstanceIDsFromAWS => false;

Source/NETworkManager.Settings/SettingsInfo.cs

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2809,46 +2809,48 @@ public int PuTTY_TelnetPort
28092809
}
28102810
}
28112811

2812-
private int _puTTY_RloginPort = GlobalStaticConfiguration.PuTTY_RloginPort;
2813-
public int PuTTY_RloginPort
2812+
2813+
2814+
private int _puTTY_BaudRate = GlobalStaticConfiguration.PuTTY_BaudRate;
2815+
public int PuTTY_BaudRate
28142816
{
2815-
get => _puTTY_RloginPort;
2817+
get => _puTTY_BaudRate;
28162818
set
28172819
{
2818-
if (value == _puTTY_RloginPort)
2820+
if (value == _puTTY_BaudRate)
28192821
return;
28202822

2821-
_puTTY_RloginPort = value;
2823+
_puTTY_BaudRate = value;
28222824
OnPropertyChanged();
28232825
SettingsChanged = true;
28242826
}
28252827
}
28262828

2827-
private int _puTTY_BaudRate = GlobalStaticConfiguration.PuTTY_BaudRate;
2828-
public int PuTTY_BaudRate
2829+
private int _puTTY_RloginPort = GlobalStaticConfiguration.PuTTY_RloginPort;
2830+
public int PuTTY_RloginPort
28292831
{
2830-
get => _puTTY_BaudRate;
2832+
get => _puTTY_RloginPort;
28312833
set
28322834
{
2833-
if (value == _puTTY_BaudRate)
2835+
if (value == _puTTY_RloginPort)
28342836
return;
28352837

2836-
_puTTY_BaudRate = value;
2838+
_puTTY_RloginPort = value;
28372839
OnPropertyChanged();
28382840
SettingsChanged = true;
28392841
}
28402842
}
28412843

2842-
private int _puTTY_DefaultRaw = GlobalStaticConfiguration.PuTTY_Raw;
2843-
public int PuTTY_DefaultRaw
2844+
private int _puTTY_RawPort = GlobalStaticConfiguration.PuTTY_RawPort;
2845+
public int PuTTY_RawPort
28442846
{
2845-
get => _puTTY_DefaultRaw;
2847+
get => _puTTY_RawPort;
28462848
set
28472849
{
2848-
if (value == _puTTY_DefaultRaw)
2850+
if (value == _puTTY_RawPort)
28492851
return;
28502852

2851-
_puTTY_DefaultRaw = value;
2853+
_puTTY_RawPort = value;
28522854
OnPropertyChanged();
28532855
SettingsChanged = true;
28542856
}

Source/NETworkManager.Validators/BaudValidator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public class BaudValidator : ValidationRule
99
/// <summary>
1010
/// Possible baud rates.
1111
/// </summary>
12-
private readonly int[] _bauds = { 75, 300, 1200, 2400, 4800, 9600, 14400, 19200, 28800, 38400, 57600, 115200 };
12+
private readonly int[] _bauds = { 300, 600, 1200, 2400, 4800, 9600, 14400, 19200, 28800, 38400, 57600, 115200, 128000, 256000, 512000, 921600 };
1313

1414
/// <summary>
1515
/// Check if the int is a valid baud rate.
@@ -24,4 +24,4 @@ public override ValidationResult Validate(object value, CultureInfo cultureInfo)
2424

2525
return _bauds.Contains(baud) ? ValidationResult.ValidResult : new ValidationResult(false, Localization.Resources.Strings.EnterValidBaud);
2626
}
27-
}
27+
}

Source/NETworkManager/Controls/AWSSessionManagerControl.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@ public bool IsConnecting
5858
#endregion
5959

6060
#region Constructor, load
61-
public AWSSessionManagerControl(AWSSessionManagerSessionInfo info)
61+
public AWSSessionManagerControl(AWSSessionManagerSessionInfo sessionInfo)
6262
{
6363
InitializeComponent();
6464
DataContext = this;
6565

6666
_dialogCoordinator = DialogCoordinator.Instance;
6767

68-
_sessionInfo = info;
68+
_sessionInfo = sessionInfo;
6969

7070
Dispatcher.ShutdownStarted += Dispatcher_ShutdownStarted;
7171
}

Source/NETworkManager/Controls/PowerShellControl.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ public bool IsConnecting
5656
#endregion
5757

5858
#region Constructor, load
59-
public PowerShellControl(PowerShellSessionInfo info)
59+
public PowerShellControl(PowerShellSessionInfo sessionInfo)
6060
{
6161
InitializeComponent();
6262
DataContext = this;
6363

6464
_dialogCoordinator = DialogCoordinator.Instance;
6565

66-
_sessionInfo = info;
66+
_sessionInfo = sessionInfo;
6767

6868
Dispatcher.ShutdownStarted += Dispatcher_ShutdownStarted;
6969
}

Source/NETworkManager/Controls/PuTTYControl.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@ public bool IsConnecting
5757
#endregion
5858

5959
#region Constructor, load
60-
public PuTTYControl(PuTTYSessionInfo info)
60+
public PuTTYControl(PuTTYSessionInfo sessionInfo)
6161
{
6262
InitializeComponent();
6363
DataContext = this;
6464

6565
_dialogCoordinator = DialogCoordinator.Instance;
6666

67-
_sessionInfo = info;
67+
_sessionInfo = sessionInfo;
6868

6969
Dispatcher.ShutdownStarted += Dispatcher_ShutdownStarted;
7070
}

0 commit comments

Comments
 (0)