shithub: hell

Download patch

ref: 019f299aef5dbd1c3d9901f20f8b14bbc9d171c1
parent: 4a4ffec0868b56ce4dcea82999d7ba6fd9f01e91
author: penny <penny@limitedideas.org>
date: Sat Nov 1 15:22:13 EDT 2025

port pause/resmue

--- a/commands.go
+++ b/commands.go
@@ -567,6 +567,30 @@
 	return cmd
 }
 
+func (hc *Hellclient) pausecmd() cmder {
+	cmd := &basiccmd{}
+	cmd.hc = hc
+	cmd.bname = "pause"
+	cmd.bflags = free
+	cmd.doer = func(data *cmddata) string {
+		hc.togglepause()
+		return ""
+	}
+	return cmd
+}
+
+func (hc *Hellclient) resumecmd() cmder {
+	cmd := &basiccmd{}
+	cmd.hc = hc
+	cmd.bname = "resume"
+	cmd.bflags = free
+	cmd.doer = func(data *cmddata) string {
+		hc.pause(false)
+		return ""
+	}
+	return cmd
+}
+
 func (hc *Hellclient) newCmdArray() []cmder {
 	cmdarray := []cmder{
 		&profilecmd{hc, hc.cmdload},
@@ -583,6 +607,8 @@
 		hc.bookmarkscmd(),
 		hc.readcmd(),
 		hc.noticecmd(),
+		hc.pausecmd(),
+		hc.resumecmd(),
 	}
 	return cmdarray
 }
--- a/main.go
+++ b/main.go
@@ -124,10 +124,6 @@
 
 			//Contextual commands that need to handle their own requirements
 			switch command {
-			
-			case "pause":
-				hc.togglepause()
-				return
 			case "resume":
 				hc.pause(false)
 				return
--