File: debug-chewing-shell.sh

package info (click to toggle)
libchewing 0.10.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,040 kB
  • sloc: ansic: 7,031; python: 190; sh: 127; makefile: 44
file content (15 lines) | stat: -rwxr-xr-x 465 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

PREFERABLE_XTERM=urxvt
MESSAGES="Please type 'run' inside gdb session to invoke genkeystroke.

After execution, close this X terminal."

$PREFERABLE_XTERM -e sh \
  -c "tty > /tmp/name_of_xterm_ptty && 
      echo -e \"$MESSAGES\" && sleep 100000" &
sleep 1
echo "tty `cat /tmp/name_of_xterm_ptty`" > .chewing-gdb-macro
echo "set args test.txt" >> .chewing-gdb-macro
libtool --mode=execute gdb -x .chewing-gdb-macro genkeystroke
rm -f .chewing-gdb-macro