You are not logged in.
Im running headless Arch inside VM and "echo $TERM" brings me to xterm-256-color but i would like to have Wezterm which i have installed from source.
IBM Lenovo ThinkPad T61 ; Lenovo ThinkPad X220; Lenovo ThinkPad T440p; Lenovo Thinkpad W520; Lenovo Thinkpad P71; ThinkPad X1 Yoga Gen1; FrankenPad T25
Asus Z10PE D-16 WS; 2x Intel Xeon E-5 2690V4; 32GB ECC; nVidia Titan V CEO
Offline
As with any environment variable, you'd change it where appropriate, depending on whether you want to set it system-wide or for a specific user only.
Inofficial first vice president of the Rust Evangelism Strike Force
Offline
https://wezterm.org/config/lua/config/term.html?h=term
Do NOT export TERM in some global profile or shell config!
Offline
What do you mean "headless wezterm"? Headless usually means no video output at all.
Anyway, as seth said, it is perhaps a pretty bad idea to set the TERM globally, just set the default shell in whatever terminal emulator you are using (konsole, xterm, gnome-terminal, etc).
A problem to do what everybody else does without questioning. A danger to go against the way things are just because. Too much or too little, ivory towers of perfection or functional mess... Balance is what this world needs. Selective, not the middle ground. Objectivity and idealism, but within a pragmatic scope. - Minimalism is achieved through efficiency, not deficiency.
Offline
I suspect the OP runs arch headless in the VM and ssh's into it and wezterm is the TE used on the host.
ncurses provides the wezterm terminfo and is most likely installed (because pretty much everything depends on ncurses through a couple of fundamental packages) so it would be ok to configure
term = "wezterm" in your .wezterm.lua
away from the stated there default of "xterm-256-color"
it is perhaps a pretty bad completely idiotic idea to set the TERM globally
ftfy
Offline