Skip to content
Snippets Groups Projects
Commit fa4b5318 authored by Emanuel Haupt's avatar Emanuel Haupt
Browse files

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] https://github.com/tulir/tcell/commit/aef08b141333dfbaad8a7f0c187d7ab7d2b203c9
    https://github.com/tulir/tcell/blob/bb9a2b9b1937b1ede6a00450b2650b7b0befe2fc/terminfo/dynamic/dynamic.go#L121

PR:		263213
Upstream issue:	https://github.com/tulir/gomuks/issues/363
Reported by:	parakleta@darkreality.org
parent 775ccb6c
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@
PORTNAME= gomuks
PORTVERSION= 0.2.4
DISTVERSIONPREFIX= v
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= net-im
MAINTAINER= ehaupt@FreeBSD.org
......
--- 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
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment