Browse Source

recommend octal codes for download script

pull/275/head
butlerx 4 years ago
parent
commit
876256da72
No known key found for this signature in database GPG Key ID: B37CA765BAA89170
  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 - auto print" and "exit auto print" respectively -
https://vt100.net/docs/tp83/appendixc.html). https://vt100.net/docs/tp83/appendixc.html).
An example of a helper script that prints the terminal escape characters and To take advantage add the following bash function to your `.bashrc`
base64s stdin:
```bash ```bash
$ cat wetty-download.sh funtion wetty-download() {
#!/bin/sh echo "\033[5i"$(cat /dev/stdin | base64 -w 0)"\033[4i"
echo '^[[5i'$(cat /dev/stdin | base64)'^[[4i' }
``` ```
You are then able to download files via WeTTy! You are then able to download files via WeTTy!

Loading…
Cancel
Save