You are not logged in.

#1 2019-12-23 01:52:59

henninb
Member
Registered: 2019-01-30
Posts: 19

neovim urxvt within xrdp - evening theme issue on Archlinux

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

#2 2019-12-23 01:56:18

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: neovim urxvt within xrdp - evening theme issue on Archlinux

What is the output of `echo $TERM` on the local and remote machines?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2019-12-23 02:21:36

henninb
Member
Registered: 2019-01-30
Posts: 19

Re: neovim urxvt within xrdp - evening theme issue on Archlinux

echo $TERM
xterm-256color

Offline

#4 2019-12-23 02:54:29

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: neovim urxvt within xrdp - evening theme issue on Archlinux

Why are you forcing TERM? It invariably breaks things...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2019-12-23 14:53:40

henninb
Member
Registered: 2019-01-30
Posts: 19

Re: neovim urxvt within xrdp - evening theme issue on Archlinux

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

#6 2019-12-23 15:15:15

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,731

Re: neovim urxvt within xrdp - evening theme issue on Archlinux

What is "not normal"
Can you provide comparative screenshots to illustrate the actual issue?
Is it monochrome?

Online

#7 2019-12-23 15:58:39

henninb
Member
Registered: 2019-01-30
Posts: 19

Re: neovim urxvt within xrdp - evening theme issue on Archlinux

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

#8 2019-12-23 16:13:46

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,731

Re: neovim urxvt within xrdp - evening theme issue on Archlinux

% 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

#9 2019-12-23 16:17:59

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,517
Website

Re: neovim urxvt within xrdp - evening theme issue on Archlinux

henninb wrote:

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

#10 2019-12-23 16:59:20

henninb
Member
Registered: 2019-01-30
Posts: 19

Re: neovim urxvt within xrdp - evening theme issue on Archlinux

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

Board footer

Powered by FluxBB