mirror of
https://github.com/PDP-10/its.git
synced 2026-03-27 02:24:15 +00:00
More strict matching in Expect script.
This commit is contained in:
@@ -2,7 +2,11 @@ proc type s {
|
||||
sleep .2
|
||||
foreach c [split $s ""] {
|
||||
send $c
|
||||
expect -re .
|
||||
if [string match {[a-z]} $c] {
|
||||
expect -nocase $c
|
||||
} else {
|
||||
expect "?"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user