fix: ssh use SafeArea

This commit is contained in:
lollipopkit
2023-02-02 18:47:07 +08:00
parent 82a201d3dc
commit 7837fa4339
13 changed files with 44 additions and 36 deletions

View File

@@ -42,7 +42,7 @@ class TerminalUITheme {
brightBlue: termColor.brightBlue,
brightMagenta: termColor.brightMagenta,
brightCyan: termColor.brightCyan,
brightWhite: termColor.brightWhite,
brightWhite: termColor.brightWhite,
searchHitBackground: searchHitBackground,
searchHitBackgroundCurrent: searchHitBackgroundCurrent,
searchHitForeground: searchHitForeground,
@@ -113,7 +113,7 @@ enum TerminalColorsPlatform {
case TerminalColorsPlatform.putty:
return 'PuTTY';
case TerminalColorsPlatform.xterm:
return 'xterm';
return 'XTerm';
case TerminalColorsPlatform.ubuntu:
return 'Ubuntu';
default:

View File

@@ -2,9 +2,9 @@
class BuildData {
static const String name = "ServerBox";
static const int build = 212;
static const int build = 213;
static const String engine =
"Flutter 3.7.0 • channel stable • https://github.com/flutter/flutter.git\nFramework • revision b06b8b2710 (9 days ago) • 2023-01-23 16:55:55 -0800\nEngine • revision b24591ed32\nTools • Dart 2.19.0 • DevTools 2.20.1\n";
static const String buildAt = "2023-02-02 13:16:45.445785";
static const int modifications = 3;
static const String buildAt = "2023-02-02 16:57:16.480921";
static const int modifications = 5;
}

View File

@@ -1,6 +1,6 @@
const seperator = 'A====A';
const shellCmd = "export LANG=en_US.utf-8 \necho '$seperator' \n"
"cat /proc/net/dev && date +%s \necho $seperator \n "
"cat /proc/net/dev && date +%s \necho $seperator \n"
"cat /etc/os-release | grep PRETTY_NAME \necho $seperator \n"
"cat /proc/stat | grep cpu \necho $seperator \n"
"uptime \necho $seperator \n"

View File

@@ -22,6 +22,7 @@ class SettingStore extends PersistentStore {
/// First time to use SSH term
StoreProperty<bool> get firstTimeUseSshTerm =>
property('firstTimeUseSshTerm', defaultValue: true);
StoreProperty<int> get termColorIdx => property('termColorIdx', defaultValue: 0);
StoreProperty<int> get termColorIdx =>
property('termColorIdx', defaultValue: 0);
}