summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2024-08-19 22:53:56 -0400
committerAndrew Cady <d@jerkface.net>2024-08-19 22:53:56 -0400
commit04653ff54c5994b7fc10ea3a49c8f168aad03274 (patch)
treeca1c876bd849de03c967076b6d640ccfc27e95b6
parent56a66925a6d7be0a30143a66dc18f64366609b2c (diff)
read-tty: line-wrap based on window size
-rwxr-xr-xsrc/read-tty6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/read-tty b/src/read-tty
index 306a69d..799244b 100755
--- a/src/read-tty
+++ b/src/read-tty
@@ -2,4 +2,8 @@
2: "${BASH_LOADABLES_PATH:=/lib/bash:/usr/lib/bash:/usr/local/lib/bash:$HOME/.local/lib/bash}" 2: "${BASH_LOADABLES_PATH:=/lib/bash:/usr/lib/bash:/usr/local/lib/bash:$HOME/.local/lib/bash}"
3enable -f sleep sleep 3enable -f sleep sleep
4source read_chars.bash 4source read_chars.bash
5(read_chars) 5:|:
6export COLUMNS
7(
8 read_chars
9)