[pdm-devel] [PATCH proxmox-yew-comp 3/3] xtermjs: add remote PBS console type

Fabian Grünbichler f.gruenbichler at proxmox.com
Tue Nov 11 09:29:23 CET 2025


Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---

Notes:
    new in v1

 src/xtermjs.rs | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/xtermjs.rs b/src/xtermjs.rs
index 4d83a73..c2c080c 100644
--- a/src/xtermjs.rs
+++ b/src/xtermjs.rs
@@ -73,6 +73,7 @@ pub enum ConsoleType {
     UpgradeShell,
     LoginShell,
     RemotePveLoginShell(String),
+    RemotePbsLoginShell(String),
 }
 
 fn xtermjs_url(console_type: &ConsoleType, node_name: &str, vnc: bool) -> String {
@@ -103,6 +104,12 @@ fn xtermjs_url(console_type: &ConsoleType, node_name: &str, vnc: bool) -> String
             param["console"] = "shell".into();
             param["cmd"] = "login".into();
         }
+        ConsoleType::RemotePbsLoginShell(remote_name) => {
+            param["console"] = "shell".into();
+            param["cmd"] = "login".into();
+            param["remote-type"] = "pbs".into();
+            param["remote"] = remote_name.as_str().into();
+        }
         ConsoleType::RemotePveLoginShell(remote_name) => {
             param["console"] = "shell".into();
             param["cmd"] = "login".into();
-- 
2.47.3





More information about the pdm-devel mailing list