diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index f2384d09d..ba8df3d88 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -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 diff --git a/wt-record b/wt-record index ef290309c..652716c9a 100755 --- a/wt-record +++ b/wt-record @@ -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