From 6fc4193720b2885efac8b52a7683f1f0d6910572 Mon Sep 17 00:00:00 2001 From: Andrey Makarov Date: Sun, 18 Oct 2020 19:56:47 +0300 Subject: [PATCH] check workaround for macosx --- lib/pure/terminal.nim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/pure/terminal.nim b/lib/pure/terminal.nim index ac67207715e8e..288ac6b7aa089 100644 --- a/lib/pure/terminal.nim +++ b/lib/pure/terminal.nim @@ -237,6 +237,8 @@ else: var L_ctermid{.importc, header: "".}: cint + when defined(macosx): + {.passl: "-lc".} proc terminalWidth*(): int = ## Returns some reasonable terminal width from either standard file ## descriptors, controlling terminal, environment variables or tradition.