diff options
author | Andrew Cady <d@jerkface.net> | 2024-08-19 22:53:56 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2024-08-19 22:53:56 -0400 |
commit | 04653ff54c5994b7fc10ea3a49c8f168aad03274 (patch) | |
tree | ca1c876bd849de03c967076b6d640ccfc27e95b6 /src/read-tty | |
parent | 56a66925a6d7be0a30143a66dc18f64366609b2c (diff) |
read-tty: line-wrap based on window size
Diffstat (limited to 'src/read-tty')
-rwxr-xr-x | src/read-tty | 6 |
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}" |
3 | enable -f sleep sleep | 3 | enable -f sleep sleep |
4 | source read_chars.bash | 4 | source read_chars.bash |
5 | (read_chars) | 5 | :|: |
6 | export COLUMNS | ||
7 | ( | ||
8 | read_chars | ||
9 | ) | ||