[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#531304: control-left arrow doesn't work in bash while using gnome-terminal under Xephyr



Package: xserver-xephyr


I'm using the script given below to start Xephyr from gdm, with the intention of creating a `multi-seat' environment.

When I open a gnome-terminal window for running bash, type a command, and press CTRL-LEFT, I expect the cursor to jump one word to the left on the command I have typed.  Instead, I see the sequence of characters ;5D displayed.

A similar problem appears with CTRL-RIGHT, I see the character sequence ;5C inserted at the cursor.

I don't have this problem in a non-Xephyr environment on the same machine.

This is my Xephyr command line:

# ps ax | grep Xephyr
1983 ? S 14:55 /usr/bin/Xephyr :1 -audit 0 -screen 1920x1200 -dpi 96 +kb r -auth /var/lib/gdm/:1.Xauth

The gdm settings:

[server-screen0]
name=screen0
command=/usr/local/bin/launch-xephyr -display :0.0 -xauthority /var/lib/gdm/:0.Xauth -audit 0 -screen 1920x1200 -dpi 96 +kb r
handled=true
flexible=false




$ cat /usr/local/bin/launch-xephyr
#!/bin/bash

trap "" usr1

XEPHYR=/usr/bin/Xephyr

args=()

while [ ! -z "$1" ]; do
if [[ "$1" == "-xauthority" ]]; then
 shift
 if [ ! -z "$1" ]; then
   export XAUTHORITY="$1"
 fi
elif [[ "$1" == "-display" ]]; then
 shift
 if [ ! -z "$1" ]; then
   export DISPLAY="$1"
 fi
else
 if ! expr match $1 'vt[0-9][0-9]*' >/dev/null; then
   args=("${args[@]}" "$1")
 fi
fi

shift
done

/usr/bin/xset s noblank
/usr/bin/xset s off
/usr/bin/xset -dpms

exec $XEPHYR "${args[@]}"






Reply to: