Hi Marc!

Thank you for your reply.

I simple can't find the source of the problem.
I am on FreeBSD BTW.

Just to point out, I currently use i3 and I call urxvtc directly. I used
to call "i3-sensible-terminal" but I didn't see any difference.

Just for reference purpose, while on Gentoo/Linux I was using
KDE+Yakuake.

> Keep in mind that urxvt faithfully executes commands sent to it, so this
> prompt is likely correct, in the sense of displaying what the application
> printing the prompt told it to display.

I am attaching my whole .cshrc.

While the prompt configuration is relativelly complex it was not when I
started using urxvt.

> One thing to look into is whether the program you use to generate those
> commands uses the correct terminal database - most programs use terminfo
> these days, but some distributions force programs back to termcap (e.g.
> redhat did that for bash), which uses a different database (/etc/termcap).

Please, take a look on this to see if it is relevant.
https://forums.freebsd.org/threads/61533/

However, it is a more or less recent issue after I started using
ncmpcpp.

> For example, maybe your window manager resizes urxvt to some tiny size
> which isn't long enough for the prompt. This could cause this problem.
> 
> While programs can adapt to size changes, it's quite possible that
> whatever generates the prompt isn't so intelligent and simply gets
> confused.  It's also quite hard to get right in programs that aren't
> full-screen, as resizes are asynchronous.
> 
> If that's the case, telling your window manager not to do unnecessary
> resizes might be a workaround for your problem as well.

This is interesting. I had not set geometry but after setting it the
problem seem to happen very less often.

Another thing, while I was testing lemonbar today, with the i3bar still
running, everytime lemonbar appear the terminal the windows got smaller (as 
expected), and
it mess with everything in the terminal.

I currently am moving to bspwm. Eventually, if I am lucky, I do not have this 
problem in
there. Who knows? :)


Many thanks!

Best Regards.
LBdM.

#
# .tcshrc - tcsh resource script, read at beginning of execution by each shell
#

set path = ( /sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin 
$HOME/.local/bin )


alias df        df -H
alias h         history 25
alias j         jobs -l
alias la        ls -aF
alias lf        ls -FA
alias ll        ls -lAF


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


setenv  BLOCKSIZE               M
setenv  CLICOLOR                1
setenv  PAGER                   more

setenv  TERMINAL                urxvtc
setenv  PANEL_FIFO              /tmp/panel-fifo
setenv  QT_QPA_PLATFORMTHEME    qt5ct


if ($?prompt) then

        set autoexpand 
        set color
        set colorcat
        set filec 
        set autolist    = ambiguous 
        set correct     = cmd 
        set history     = 2048
        set histfile    = ~/.csh_history
        set mail        = (/var/mail/$USER) 
        set savehist    = (1024 merge) 
        
        set autorehash  = always

        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 ($tty =~ ttyv*) then

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

                else

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

                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


### EOF ###
_______________________________________________
rxvt-unicode mailing list
[email protected]
http://lists.schmorp.de/mailman/listinfo/rxvt-unicode

Reply via email to