summaryrefslogtreecommitdiff
path: root/src/read-tty
diff options
context:
space:
mode:
Diffstat (limited to 'src/read-tty')
-rwxr-xr-xsrc/read-tty5
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
2BASH_ARGV0=read-tty
3echo -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}"
3enable -f sleep sleep 5enable -f sleep sleep
4source read_chars.bash 6source read_chars.bash
5:|: 7:|:
6export COLUMNS 8export 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)