mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-05 06:27:37 +00:00
net-im/gomuks: Fix runtime within a tmux session
An upstream change [1] made it a requirement to have `infocmp` installed for parsing terminal capabilities within a tmux session. While ncurses from base works perfectly fine with gomuks, base does not ship with `infocmp` thus creating a hard dependency to devel/ncurses. Patch port to revert upstream change. [1]aef08b1413
bb9a2b9b19/terminfo/dynamic/dynamic.go (L121)
PR: 263213 Upstream issue: https://github.com/tulir/gomuks/issues/363 Reported by: parakleta@darkreality.org
This commit is contained in:
parent
775ccb6cc3
commit
fa4b531894
@ -3,7 +3,7 @@
|
||||
PORTNAME= gomuks
|
||||
PORTVERSION= 0.2.4
|
||||
DISTVERSIONPREFIX= v
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= net-im
|
||||
|
||||
MAINTAINER= ehaupt@FreeBSD.org
|
||||
|
@ -0,0 +1,18 @@
|
||||
--- vendor/maunium.net/go/tcell/tscreen.go.orig 2022-04-12 11:45:41 UTC
|
||||
+++ vendor/maunium.net/go/tcell/tscreen.go
|
||||
@@ -50,13 +50,9 @@ const (
|
||||
// $COLUMNS environment variables can be set to the actual window size,
|
||||
// otherwise defaults taken from the terminal database are used.
|
||||
func NewTerminfoScreen() (Screen, error) {
|
||||
- term := os.Getenv("TERM")
|
||||
- if len(term) >= 6 && term[:6] == "screen" && len(os.Getenv("TMUX")) > 0 {
|
||||
- term = "tmux"
|
||||
- }
|
||||
- ti, e := terminfo.LookupTerminfo(term)
|
||||
+ ti, e := terminfo.LookupTerminfo(os.Getenv("TERM"))
|
||||
if e != nil {
|
||||
- ti, e = loadDynamicTerminfo(term)
|
||||
+ ti, e = loadDynamicTerminfo(os.Getenv("TERM"))
|
||||
if e != nil {
|
||||
return nil, e
|
||||
}
|
Loading…
Reference in New Issue
Block a user