Browse Source

Merge pull request #275 from butlerx/bash-func

recommend octal codes for download script
pull/278/head
Cian Butler 4 years ago
committed by GitHub
parent
commit
8081e37ca3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      docs/downloading-files.md

9
docs/downloading-files.md

@ -7,13 +7,12 @@ The terminal escape sequences used are `^[[5i` and `^[[4i` (VT100 for "enter
auto print" and "exit auto print" respectively -
https://vt100.net/docs/tp83/appendixc.html).
An example of a helper script that prints the terminal escape characters and
base64s stdin:
To take advantage add the following bash function to your `.bashrc`
```bash
$ cat wetty-download.sh
#!/bin/sh
echo '^[[5i'$(cat /dev/stdin | base64)'^[[4i'
funtion wetty-download() {
echo "\033[5i"$(cat /dev/stdin | base64 -w 0)"\033[4i"
}
```
You are then able to download files via WeTTy!

Loading…
Cancel
Save