• Terminal colours using X11 forwarding and xrdb

    From Grant Taylor@21:1/5 to Dai Woo on Sun Sep 23 10:41:47 2018
    On 11/29/2017 10:01 PM, Dai Woo wrote:
    I'm sshing to a server using -Y and I'm trying to get the default terminal foreground colour that xterm is using, which is stored in .Xresources. I
    have put this in my .zshrc:

    [ -n "$DISPLAY" ] && xrdb load .Xresources

    If I launch an xterm and printf the code to print bold text it works
    fine. If I try to print bold text without launching an xterm it prints
    bold white instead. Is there any way of getting bold my foreground colour
    in just a ssh session without actually launching an X Windows app?

    I'm fairly certain that the colors come from the machine that is running
    XTerm (or what ever terminal emulator). Thus when you launch an XTerm
    with $DISPLAY set, you are actually running XTerm on the remote machine,
    using it's .Xresources, and sending the full GUI back to the client.
    Conversely when you run XTerm locally, you are using the local
    .Xresources settings.

    I don't know of any way to override the .Xresources values without
    clients having things hard coded.

    You can copy the values out of the remote .Xresources file to your local
    client and load them there.

    Thanks for any info.

    You're welcome and good luck.



    --
    Grant. . . .
    unix || die

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)