You are not logged in.
Greetings,
I am trying to run neovim in urxvt over xrdp and the "evening" theme colors are not normal. I observe that neovim is working just fine on the local terminal (theoretically this should be the the same settings). I have a custom startwm.sh script for xrdp as to ensure my .Xresources loads and the locale is set. Please let me know if you have any ideas as to how to get the fonts in xrdp to look normal.
```
#!/usr/bin/env sh
export TERM="xterm-256color"
#export LANG=en_US.UTF-8
#export LC_CTYPE="en_US.UTF-8"
export LANG=en_US.UTF-8
export LC_CTYPE=en_US.UTF-8
export LC_NUMERIC=en_US.UTF-8
export LC_TIME=en_US.UTF-8
export LC_COLLATE=C
export LC_MONETARY=en_US.UTF-8
export LC_MESSAGES=en_US.UTF-8
export LC_PAPER=en_US.UTF-8
export LC_NAME=en_US.UTF-8
export LC_ADDRESS=en_US.UTF-8
export LC_TELEPHONE=en_US.UTF-8
export LC_MEASUREMENT=en_US.UTF-8
export LC_IDENTIFICATION=en_US.UTF-8
#xset +fp ~/.fonts
xrdb -merge ~/.Xresources
# for troubleshooting uncomment
#exec xterm
#exec urxvt
. ~/.xinitrc
```
Offline
What is the output of `echo $TERM` on the local and remote machines?
Offline
echo $TERM
xterm-256color
Offline
Why are you forcing TERM? It invariably breaks things...
Offline
Fair point, I have removed all the env settings for TERM. When I login to urxvt I now see "rxvt-256color" as the value for echo $TERM. That said I still see the situation where neovim is not able to shift to the evening theme. Any thoughts on what I should try next?
Offline
What is "not normal"
Can you provide comparative screenshots to illustrate the actual issue?
Is it monochrome?
Online
I think i found the root cause of my issue, but don't know how to solve it.
when I run the following command in urxvt I get 88 when I should get back 256.
> tput colors
how do I solve for this issue?
Offline
% export TERM=rxvt-256color; tput colors
256
% export TERM=xterm-256color; tput colors
256
% export TERM=xterm; tput colors
256
% export TERM=rxvt-unicode; tput colors
88*shrug*
If you use tmux and friends, they tend to alter the TERM variable. Anhother reason could be $SHELL
Online
how do I solve for this issue?
You should start by actually answering the questions that have been presented to you.
You've said what TERM is on one machine, but you were asked for it from both to compare.
You were asked what "not normal" meant or what the actual symptoms were, but this was followed up with other suspicions rather than answers.
It's good that you keep trying to follow your own leads, but don't discard the leads that other members here are trying to follow ... or they will stop trying.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
I apologize for the confusion above. I am not introducing tmux at all when speaking of my problem.
Below is a restatement of my original problem.
When I run the following shell script I only see the first 88 colors when I I should see all 256.
#!/bin/bash
for i in $(seq 0 255); do
printf "\e[0;48;5;${i}m %03d\e[0;38;5;${i}m %03d " $i $i
[[ $i -eq 7 || $i -eq 15 || $i -eq 231 || $i -eq 239 || $i -eq 247 ]] && echo
[[ $i -ge 15 && $i -le 231 && $(( ($i - 15) % 6 )) -eq 0 ]] && echo
done
Below is a snip of my Xresouces file. I am currently seeing rxvt-unicode-256color in my echo $TERM. I also see $COLORTERM=rxvt-xpm
URxvt.termName: rxvt-unicode-256color
!URxvt.termName: rxvt-256color
!URxvt*termName: rxvt
Offline