1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-25 21:07:39 +03:00

make it a bit easier to consume wt-record

Since most users are unlikely to have built from source, adjust
the script so that it will find their installed wezterm.

Adjust the issue template to reference the wt-record script.
This commit is contained in:
Wez Furlong 2020-06-12 08:49:20 -07:00
parent ce0797b68b
commit 9f4e40b540
2 changed files with 7 additions and 4 deletions

View File

@ -40,8 +40,10 @@ appropriate for rendering issues.
## Session Recording
If the issue is with the way that escape sequences are processed it can be helpful
to capture the terminal output using the `wt-record` script to run `wezterm` and
record a transcript. This requires the `script` utility to be installed on your system.
to capture the terminal output using the [`wt-record`](https://github.com/wez/wezterm/blob/master/wt-record)
script to run `wezterm` and record a transcript. This requires the `script` utility
to be installed on your system (this is part of macOS and available in the `util-linux`
package on linux systems).
In the example below a file named `20180225161026.tgz` is produced. Please attach that
file to this issue, or if it contains private or sensitive issue that you don't want the

View File

@ -3,15 +3,16 @@
NOW=`date -u +%Y%m%d%H%M%S`
echo $NOW
PATH=$PWD/target/release:$PATH
case $OSTYPE in
darwin*)
./target/release/wezterm start -- script -r $NOW.typescript
wezterm start -- script -r $NOW.typescript
tar -cz -f $NOW.tgz $NOW.typescript
;;
linux*)
./target/release/wezterm start -- script -t$NOW.timing $NOW.typescript
wezterm start -- script -t$NOW.timing $NOW.typescript
tar -cz --remove-files -f $NOW.tgz $NOW.timing $NOW.typescript
;;
esac