diff options
Diffstat (limited to 'src/read-tty')
-rwxr-xr-x | src/read-tty | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/read-tty b/src/read-tty index 799244b..74e2803 100755 --- a/src/read-tty +++ b/src/read-tty | |||
@@ -1,9 +1,14 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | BASH_ARGV0=read-tty | ||
3 | echo -n "$0" >/proc/$BASHPID/comm | ||
2 | : "${BASH_LOADABLES_PATH:=/lib/bash:/usr/lib/bash:/usr/local/lib/bash:$HOME/.local/lib/bash}" | 4 | : "${BASH_LOADABLES_PATH:=/lib/bash:/usr/lib/bash:/usr/local/lib/bash:$HOME/.local/lib/bash}" |
3 | enable -f sleep sleep | 5 | enable -f sleep sleep |
4 | source read_chars.bash | 6 | source read_chars.bash |
5 | :|: | 7 | :|: |
6 | export COLUMNS | 8 | export COLUMNS |
7 | ( | 9 | ( |
10 | BASH_ARGV0=read-tty-subshell | ||
11 | echo -n "$0" >/proc/$BASHPID/comm | ||
12 | trap 'x /bin/kill -INT -- -$BASHPID' INT | ||
8 | read_chars | 13 | read_chars |
9 | ) | 14 | ) |