diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-01-12 23:04:59 +0300 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-01-12 23:04:59 +0300 |
commit | 2812e9a904f8367fdb482c09486ca502246e1ed3 (patch) | |
tree | 2f27261f1c160fb77ee649396562d2733972bbdc | |
parent | 62e09984bf054e96cedb7eefaf0f59b35b270c07 (diff) | |
download | openrussian-cli-2812e9a904f8367fdb482c09486ca502246e1ed3.tar.gz |
fixed piping to Groff
* nroff does not always support `-K`
-rwxr-xr-x | openrussian.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openrussian.lua b/openrussian.lua index 6ee5628..9c1df4b 100755 --- a/openrussian.lua +++ b/openrussian.lua @@ -605,7 +605,7 @@ if use_stdout then else local size_stream = io.popen("stty size") local columns = size_stream and size_stream:read("*a"):match("%d+ (%d+)") or 80 - out_stream = io.popen("nroff -Kutf8 -Tutf8 -t -man -rLL="..columns.."n -rLT="..columns.."n | less -r", "w") + out_stream = io.popen("groff -Kutf8 -Tutf8 -t -man -rLL="..columns.."n -rLT="..columns.."n | less -r", "w") end assert(out_stream) |