The officially official Devuan Forum!

You are not logged in.

#1 2022-02-08 09:17:14

amaro
Member
Registered: 2022-02-08
Posts: 97  

[SOLVED] xterm unable to allocate fg/bg color

Hello everyone!

I want to change 'xterm' 'bg' and 'fg' colors. Tried several variations but always get the same output

xterm: unable to allocate fg/bg color

Here is what have tried

*background: brown
*background: boldbrown
*background: #FDF6E3
*background: 255 218 185
*background: \033[43m
*BACKGROUND: brown

All of the above with ""
Plus 'black' for 'fg'

What is the right way to change the colors?

Offline

#2 2022-02-08 09:33:20

hevidevi
Member
Registered: 2021-09-17
Posts: 230  

Re: [SOLVED] xterm unable to allocate fg/bg color

I think you are just missing a character.

This is what mine looks like for background.

*.foreground:   #ffffff
*.background:   #0c0c0d

Offline

#3 2022-02-08 09:52:49

amaro
Member
Registered: 2022-02-08
Posts: 97  

Re: [SOLVED] xterm unable to allocate fg/bg color

@hevidevi

just tried it, no difference, same output

for the record, did

xrdb -merge ~/.Xresources

Offline

#4 2022-02-08 09:53:54

hevidevi
Member
Registered: 2021-09-17
Posts: 230  

Re: [SOLVED] xterm unable to allocate fg/bg color

can you post the whole .Xresources file, might be some other errors ?

Offline

#5 2022-02-08 10:00:22

amaro
Member
Registered: 2022-02-08
Posts: 97  

Re: [SOLVED] xterm unable to allocate fg/bg color

cat ~/.Xresources
xterm*VT100.Translations: #override \
                 Ctrl Shift <Key>V:    insert-selection(CLIPBOARD) \n\
                 Ctrl Shift <Key>C:    copy-selection(CLIPBOARD)
xterm*faceName: Terminus (TTF):style=Medium
xterm*faceSize: 12
xterm*geometry: 123x24
xterm*.background: #FDF6E3
xterm*.foreground: #000
!xterm*boldColors: false
xterm*cursorColor: #000

Offline

#6 2022-02-08 10:06:12

hevidevi
Member
Registered: 2021-09-17
Posts: 230  

Re: [SOLVED] xterm unable to allocate fg/bg color

use vt100 instead of xterm.

so like this if you want to use xterm 256 colors.

*vt100.background: #FDF6E3
*vt100.foreground: #000

replace all xterm* with *vt100

or you need to spell xterm correctly and put the * in the correct place so like this..

*XTerm.background: #FDF6E3
*XTerm.foreground: #000000

here is some more color you can use.

https://www.ditig.com/256-colors-cheat-sheet

Last edited by hevidevi (2022-02-08 10:09:53)

Offline

#7 2022-02-08 10:20:12

amaro
Member
Registered: 2022-02-08
Posts: 97  

Re: [SOLVED] xterm unable to allocate fg/bg color

awesome!
adding 'vt100' did it.

thank you, hevidevi!

Offline

Board footer