summaryrefslogtreecommitdiff
path: root/client/main.go
diff options
context:
space:
mode:
authorcitrons <citrons@mondecitronne.com>2025-06-05 14:56:22 -0500
committercitrons <citrons@mondecitronne.com>2025-06-07 16:02:18 -0500
commitcf78bc0515fa38a6cc570afd7a7e0000bdcda09e (patch)
tree6a72a3ef0f67dde072d0a9010851ee06441041dc /client/main.go
parent8352123b5c2c479cea31c991eeebf7868559db29 (diff)
clipboard support
Diffstat (limited to 'client/main.go')
-rw-r--r--client/main.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/client/main.go b/client/main.go
index 5b88117..c9da6c3 100644
--- a/client/main.go
+++ b/client/main.go
@@ -2,6 +2,7 @@ package main
import (
"citrons.xyz/talk/tui"
+ "citrons.xyz/talk/client/clipboard"
"time"
"fmt"
"os"
@@ -10,6 +11,8 @@ import (
var globalApp *application
func main() {
+ go clipboard.DiscoverCommand()
+
err := tui.Start()
if err != nil {
fmt.Fprintln(os.Stderr, "error initializing terminal: ", err)
@@ -39,6 +42,10 @@ func main() {
globalApp.show()
redraw = false
}
+ case text := <-globalApp.activePaste:
+ globalApp.onPaste(text)
+ globalApp.activePaste = nil
+ redraw = true
}
if globalApp.quit == true {
return