pawelchcki / semicomplete

Automatically exported from code.google.com/p/semicomplete
0 stars 0 forks source link

It's hard to type a newline-terminated string. #79

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. sleep 1; xdotool type "date^V^J"
2. sleep 1; xdotool type $'date\n'
3.

What is the expected output? What do you see instead?
Expected output: the date command runs
# xdotool type "date\n"
Thu Nov 21 10:24:55 PST 2013
#

Actual output: the date command runs as long as the enter key is not held down 
more than one second.
# date
Thu Nov 21 10:24:55 PST 2013
# 

What version of the product are you using? On what operating system?
xdotool version 2.20110530.1
Ubuntu 12.04.3 LTS

Please provide any additional information below.

Maybe xdotool could be modified to have 'xdotool typeline .....', which adds an 
enter key at the end?  Also, maybe it could wait up to 1 second for the enter 
key to be released (if pressed) before starting?

Thanks!

Original issue reported on code.google.com by pkts...@gmail.com on 21 Nov 2013 at 6:40