Solved URXVT issues.

rigoletto@

Developer
Hello!

I (finally) managed to migrate my desktop to FreeBSD, however I am having problems to get x11/rxvt-unicode properly working.

I am using i3wm. Currently using Ports built using ports-mgmt/synth, and the behavior explained here is consistent since when I still had pkgs only, right after the installation.

The problems are:

I have CLICOLOR set on .tcshrc, $PS1 is properly colorized but I can't get colors on files/folders.

When I run ports-mgmt/synth it return this message:

The TERM environment variable value (rxvt-unicode) does not support colors.

The second problem is related to the fact I can't get x11/urxvt-perls. None of the options in the configuration are working as expected.

Copy/paste work, but not as expected- Alt+C/Alt+V. It is working using mouse selection and Shift+Insert.

.Xresources
Code:
Xft.dpi:   96
Xft.antialias:   1
Xft.rgba:   none
Xft.hinting:   1
Xft.hintstyle:   hintfull
Xft.autohint:   1
Xft.lcdfilter:   lcddefault

URxvt.font:   xft:Terminus:size=9
URxvt.boldFont: xft:Terminus:bold:size=9

URxvt*depth: 32
URxvt.background: [85]#000000

URxvt*cursorBlink:   1

URxvt.scrollBar:       false
URxvt.scrollBar_right:       false
URxvt.scrollBar_floating:   false
URxvt.scrollstyle:        rxvt

! do not scroll with output
URxvt*scrollTtyOutput: false

! scroll in relation to buffer (with mouse scroll or Shift+Page Up)
URxvt*scrollWithBuffer: true

! scroll back to the bottom on keypress
URxvt*scrollTtyKeypress: true

URxvt.secondaryScreen:   1
URxvt.secondaryScroll:   0

URxvt.perl-ext-common:    default,clipboard,matcher,

URxvt.keysym.M-c:       perl:clipboard:copy
URxvt.keysym.M-v:       perl:clipboard:paste
URxvt.keysym.M-C-v:    perl:clipboard:paste_escaped

URxvt.url-launcher:   /usr/bin/xdg-open
URxvt.matcher.button:   1

!URxvt.transparent: true
!URxvt.shading:5

*background: #0f0f0f
*foreground: #c8c8c8

Thanks!

EDIT: 11.0-RELEASE-p8
 
UPDATE:

Running urxvt from a terminal (urxvt) and later, on the new opened terminal using Alt+C and Alt+V, I do get those messages:

Alt+C:
Code:
xsel 0.04 23072002

Command line interface to the X selections

usage:  xsel action [options]
actions:
   -p or --paste
      Paste the current X selection (if any) to stdout and
      and exit.
   -c or --copy
      Copy the input from stdin to the X selection. Note that
      the X selection model has no concept of selection buffer
      on the server. Rather, the client that holds the current
      selection makes it available to the other clients and
      has to wait until someone requests it. Hence, xsel forks
      and serves the selection requests until someone else
      claims the selection.
      The copied string can also be given on command line
      rather than through stdin: --copy "string to copy".
   -m or --merge
      Same as -c, but merge the input to the current selection
      instead of overwriting it.
options:
   -s SELECTION or --selection SELECTION
      Where SELECTION is either "PRIMARY", "SECONDARY" or
      "CLIPBOARD". Selects which X selection to use. For -p,
      the default is to first try PRIMARY, and if it is empty,
      then SECONDARY and finally CLIPBOARD. For -c and -m, the
      default is PRIMARY.

Alt+V:
Code:
xsel 0.04 23072002

Command line interface to the X selections

usage:  xsel action [options]
actions:
   -p or --paste
      Paste the current X selection (if any) to stdout and
      and exit.
   -c or --copy
      Copy the input from stdin to the X selection. Note that
      the X selection model has no concept of selection buffer
      on the server. Rather, the client that holds the current
      selection makes it available to the other clients and
      has to wait until someone requests it. Hence, xsel forks
      and serves the selection requests until someone else
      claims the selection.
      The copied string can also be given on command line
      rather than through stdin: --copy "string to copy".
   -m or --merge
      Same as -c, but merge the input to the current selection
      instead of overwriting it.
options:
   -s SELECTION or --selection SELECTION
      Where SELECTION is either "PRIMARY", "SECONDARY" or
      "CLIPBOARD". Selects which X selection to use. For -p,
      the default is to first try PRIMARY, and if it is empty,
      then SECONDARY and finally CLIPBOARD. For -c and -m, the
      default is PRIMARY.
error running 'xsel -ob':

For some reason appear to have an error x11/xsel when pasting:

Code:
error running 'xsel -ob':
 
This is the complete .tcshrc:

Code:
setenv   BLOCKSIZE       M
setenv    CLICOLOR       1
setenv   TERM           rxvt-unicode
setenv   QT_QPA_PLATFORMTHEME   qt5ct

setenv   LANG           en_US.UTF-8
setenv   LC_COLLATE       C


if ( -X vim ) then
   setenv   EDITOR   vim
   alias   vi   vim
else if (-X vi) then
   setenv   EDITOR   vi
endif


if ($?prompt) then

   set autoexpand
   set autolist = ambiguous
   set autorehash
   set color
   set correct = cmd
   set filec
   set history = 1000
   set mail = (/var/mail/$USER)
   set promptchars = "%#"
   set savehist = (1000 merge)

   set grey    = "%{\033[1;30m%}"
   set red    = "%{\033[1;31m%}"
   set green    = "%{\033[1;32m%}"
   set yellow    = "%{\033[1;33m%}"
   set blue    = "%{\033[1;34m%}"
   set magenta    = "%{\033[1;35m%}"
   set cyan    = "%{\033[1;36m%}"
   set white    = "%{\033[1;37m%}"

   set end    = "%{\033[0m%}"

       if ( $USER == root ) then
           set prompt = "\n${blue}%~ ${red}%N@%m: \n${end}%# "
       else
           set prompt = "\n${red}%~ ${blue}%m: \n${end}%# "
       endif

   unset grey red green yellow blue magenta cyan white end
   
   if ( $?tcsh ) then
           bindkey "^[Od"       backward-word       # rxvt
           bindkey "^[Oc"       forward-word       # rxvt
           bindkey   "\e[2~"       overwrite-mode
           bindkey   "\e[3~"       delete-char
           bindkey   "\e[1;5C"   forward-word
           bindkey   "\e[1;5D"   backward-word
           bindkey   "\e[5~"       history-search-backward
           bindkey   "\e[6~"       history-search-forward
           bindkey   "^W"       backward-delete-word
   endif
   
endif


alias h       history 25
alias j       jobs -l
alias la   ls -aF
alias lf   ls -FA
alias ll   ls -lAF
 
Back
Top