diff options
author | delthas <delthas@dille.cc> | 2022-10-17 10:33:07 +0200 |
---|---|---|
committer | delthas <delthas@dille.cc> | 2022-10-17 10:33:07 +0200 |
commit | f254040916ad6888ae7fb28e6a5e6a5cfd1c810b (patch) | |
tree | cdd07428fb13557d8849478a195028e760675efa /cmd | |
parent | Switch to the upstream tcell implementation of OSC 8 hyperlink (diff) |
Add OSC 8 hyperlink IDs
OSC 8 hyperlink ID support was merged into tcell. We can now use those
IDs to help terminal emulators identify links spanning multiple lines,
possibly highlighting the whole link whe it is hovered, or creating a
single link hotkey for them.
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/senpai/main.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/senpai/main.go b/cmd/senpai/main.go index d177a8b..241c4c3 100644 --- a/cmd/senpai/main.go +++ b/cmd/senpai/main.go @@ -4,6 +4,7 @@ import ( "flag" "fmt" "io/ioutil" + "math/rand" "os" "os/signal" "path" @@ -24,6 +25,8 @@ func main() { flag.BoolVar(&debug, "debug", false, "show raw protocol data in the home buffer") flag.Parse() + rand.Seed(time.Now().UnixNano()) + if configPath == "" { configDir, err := os.UserConfigDir() if err != nil { |