From 61071de644c1b49cb3cf3e34103cdf70f1306c2c Mon Sep 17 00:00:00 2001 From: sawka Date: Tue, 4 Oct 2022 13:53:04 -0700 Subject: [PATCH] checkpoint -- fg/focus --- src/main.tsx | 12 +++++++----- src/sh2.less | 21 +++++++++++++++++++++ src/types.ts | 1 + 3 files changed, 29 insertions(+), 5 deletions(-) diff --git a/src/main.tsx b/src/main.tsx index d4e69b74..8a53a6c1 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -1603,9 +1603,11 @@ class CmdInput extends React.Component<{}, {}> { let infoMsg = inputModel.infoMsg.get(); let hasInfo = (infoMsg != null); let remoteShow = (infoMsg != null && !isBlank(infoMsg.ptyremoteid)); + let focusVal = model.getFocusedLine(); return ( -
-
+
+
+
@@ -1617,13 +1619,13 @@ class CmdInput extends React.Component<{}, {}> {
- -
+ +
-
+
{remoteStr}
diff --git a/src/sh2.less b/src/sh2.less index 1be00dc3..e21c5f9f 100644 --- a/src/sh2.less +++ b/src/sh2.less @@ -380,6 +380,12 @@ html, body, #main { } } +.line.line-selected { + &.line-focused { + outline-left: 3px solid blue; + } +} + .line.line-cmd { flex-direction: column; scroll-margin-bottom: 20px; @@ -637,11 +643,26 @@ body .xterm .xterm-viewport { display: flex; flex-direction: column; position: relative; + padding: 20px 20px 20px 20px; &.has-info { padding-top: 5px; } + .focus-indicator { + position: absolute; + background-color: #666; + width: 5px; + border-radius: 3px; + height: 90%; + top: 5%; + left: 4px; + + &.active { + background-color: @tab-blue; + } + } + &.has-history { padding-top: 5px; height: max(300px, 40%); diff --git a/src/types.ts b/src/types.ts index 27b6d7f8..803ddb5d 100644 --- a/src/types.ts +++ b/src/types.ts @@ -92,6 +92,7 @@ type RemoteType = { mshellversion : string, needsmshellupgrade : boolean, waitingforpassword : boolean, + local : boolean, remove? : boolean, };