aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2024-01-12 23:04:59 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2024-01-12 23:04:59 +0300
commit2812e9a904f8367fdb482c09486ca502246e1ed3 (patch)
tree2f27261f1c160fb77ee649396562d2733972bbdc
parent62e09984bf054e96cedb7eefaf0f59b35b270c07 (diff)
downloadopenrussian-cli-2812e9a904f8367fdb482c09486ca502246e1ed3.tar.gz
fixed piping to Groff
* nroff does not always support `-K`
-rwxr-xr-xopenrussian.lua2
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)