zsh-workers
 help / color / mirror / code / Atom feed
From: S M <themolesbox@gmail.com>
To: zsh-workers@zsh.org
Subject: Live Clock Causes Directory Flashing In URxvt & XTerm
Date: Mon, 9 Jun 2014 02:50:06 -1000	[thread overview]
Message-ID: <CAC=V-3LOe8RhuxmypJvg1-9+xCrm2og8Bodh2JQUeCsrt02GnQ@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1424 bytes --]

Hello zsh Team,

These are my specs;

Slackware 14.1 x86_64
xorg-server-1.14.3
Nvidia GTX660M - nvidia drivers 331.67
zsh-5.0.2
rxvt-unicode-9.20
xterm-297

I'm using this option to have a live clock in my ~/.zshrc

TMOUT=1
TRAPALRM() {
     zle reset-prompt
}

In URxvt it constantly flashes, in xterm it flashes on and off more
randomly, and I also noticed in xterm the entire directory appears to get
brighter as well as flashing.

So as example, 'cd /etc/' then tap tab to see the directory, try this in a
directory with a small amount of directories, or open the term full screen
to see a huge directory, but play with it, and at that point the terminal
starts flashing.

I have not been able to find a fix for this, the only temporary solution is
to increase the time, as an example below;

TMOUT=10

Then it's not so noticeable, around every 10 seconds you see a flash, but
this is also not good because when the time changes, the terminal will not
change till 10 seconds later, there's a lag doing this.

I hope the zsh team can fix this problem, and if you need my help please
contact me.

I'm attaching a copy of my ~/.zshrc and I created a short video called,
zsh_flicker.m4v that you can download from my dropbox;

https://www.dropbox.com/s/o0gmkpbxp8f42u3/zsh_flicker.m4v

If you look carefully you will see the directory flashing every second.

Thank you much for your time and help in this matter.

Mii Bolen

[-- Attachment #1.2: Type: text/html, Size: 1841 bytes --]

[-- Attachment #2: .zshrc --]
[-- Type: application/octet-stream, Size: 5397 bytes --]

##############################
## zsh config file ~/.zshrc ##
##                          ##
##############################
## variables -----------------------------------------------------------
export BROWSER="firefox"
export EDITOR="nano"
export PAGER="most"
export NMON=cmdn
# text normal colors
alias 256colors='for code in {0..255}; do echo -e "\e[38;05;${code}m $code: Test"; done'
case $TERM in (xterm|screen) TERM=$TERM-256color;; esac
# reset color
NC='\e[0m'
########################################################################
## options #############################################################
########################################################################
# misc -----------------------------------------------------------------
# use vi keybinds
bindkey -v
# no beep
unsetopt beep
unsetopt hist_beep
unsetopt list_beep
# display errors
#setopt print_exit_value
# confirm 'rm *'
unsetopt rm_star_silent
# no error on search 
setopt nullglob
# completion menu
setopt auto_menu
# confirm 'rm *' etc
setopt rm_star_wait
# don't &proc kill on exit
setopt auto_continue
# don’t nice &proc
setopt no_bg_nice
# keys -----------------------------------------------------------------
typeset -A key
key[Home]=${terminfo[khome]}
key[End]=${terminfo[kend]}
key[Insert]=${terminfo[kich1]}
key[Delete]=${terminfo[kdch1]}
key[Up]=${terminfo[kcuu1]}
key[Down]=${terminfo[kcud1]}
key[Left]=${terminfo[kcub1]}
key[Right]=${terminfo[kcuf1]}
key[PageUp]=${terminfo[kpp]}
key[PageDown]=${terminfo[knp]}
# setup key accordingly
[[ -n "${key[Home]}"    ]]  && bindkey  "${key[Home]}"    beginning-of-line
[[ -n "${key[End]}"     ]]  && bindkey  "${key[End]}"     end-of-line
[[ -n "${key[Insert]}"  ]]  && bindkey  "${key[Insert]}"  overwrite-mode
[[ -n "${key[Delete]}"  ]]  && bindkey  "${key[Delete]}"  delete-char
[[ -n "${key[Up]}"      ]]  && bindkey  "${key[Up]}"      up-line-or-history
[[ -n "${key[Down]}"    ]]  && bindkey  "${key[Down]}"    down-line-or-history
[[ -n "${key[Left]}"    ]]  && bindkey  "${key[Left]}"    backward-char
[[ -n "${key[Right]}"   ]]  && bindkey  "${key[Right]}"   forward-char
# history --------------------------------------------------------------
# history size
HISTSIZE=5000
SAVEHIST=5000
# history file
HISTFILE=~/.zsh_history
# history without double entry
setopt hist_ignore_all_dups
# all zsh instance share same file
setopt share_history
# update history
setopt inc_append_history
########################################################################
## alias ###############################################################
########################################################################
# ls & grep ------------------------------------------------------------
alias ls='ls --color=auto'
alias dir='dir --color=auto'
alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
alias ll='ls -l'
alias la='ls -A'
alias l='ls -CF'
########################################################################
## file type alias #####################################################
########################################################################
alias -s html=$BROWSER
alias -s pdf=epdfview
alias -s svg=inkscape
alias -s png=viewnior
alias -s jpg=viewnior
alias -s gif=viewnior
alias -s txt=$EDITOR
alias -s conf=$EDITOR
alias -s py=$EDITOR
alias -s php=$EDITOR
alias -s mp3=deadbeef
alias -s ogg=deadbeef
alias -s ogv=smplayer
alias -s flv=smplayer
alias -s avi=smplayer
alias -s mp4=smplayer
alias -s mkv=smplayer
alias -s m3u=deadbeef
alias -s zip=dtrx
alias -s tar=dtrx
alias -s tar.gz=dtrx
alias -s tar.bz2=dtrx
alias -s xz=dtrx
alias -s rar=dtrx

########################################################################
## completion ##########################################################
########################################################################
autoload -Uz compinit
compinit
zstyle ':completion:*' auto-description 'specify: %d'
zstyle ':completion:*' completer _expand _complete _correct _approximate
zstyle ':completion:*' format 'Completing %d'
zstyle ':completion:*' group-name ''
zstyle ':completion:*' menu select=1
eval "$(dircolors -b)"
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
zstyle ':completion:*' list-colors ''
zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=* l:|=*'
zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
zstyle ':completion:*' use-compctl false
zstyle ':completion:*' verbose true
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'

########################################################################
## prompt ##############################################################
########################################################################
autoload -Uz promptinit
autoload -U colors && colors
promptinit
setopt PROMPT_SUBST
PROMPT="%F{202} %D{%I}%f%F{251}:%f%F{202}%D{%M}%f%F{214} %D{%P}%f %F{199}%n%f >"
RPROMPT="%F{251}<%f %F{blue}%M%f:%F{cyan}%y%f:%F{yellow}%~%f"
TMOUT=1
TRAPALRM() {
     zle reset-prompt
}
## EOF #################################################################

             reply	other threads:[~2014-06-09 12:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-09 12:50 S M [this message]
2014-06-09 13:19 ` Frank Terbeck
2014-06-09 16:02 ` Bart Schaefer
2014-06-10  2:05   ` S M
2014-06-12 23:46     ` S M

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAC=V-3LOe8RhuxmypJvg1-9+xCrm2og8Bodh2JQUeCsrt02GnQ@mail.gmail.com' \
    --to=themolesbox@gmail.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).