diff --git a/src/threecode/fatprompt/runtime.nim b/src/threecode/fatprompt/runtime.nim index 6693017..15c32cc 100644 --- a/src/threecode/fatprompt/runtime.nim +++ b/src/threecode/fatprompt/runtime.nim @@ -4,7 +4,8 @@ ## turn is running. The turn controller calls these helpers directly and also ## registers them as API stream hooks. `api.nim` must not import this module. -import std/[atomics, json, locks, os, strformat, strutils, terminal, times, unicode] +import std/[atomics, json, locks, os, strformat, strutils, terminal, times] +import std/unicode except strip when defined(posix): import std/posix except SocketHandle import posix/termios diff --git a/src/threecode/util.nim b/src/threecode/util.nim index d4b163f..249cfae 100644 --- a/src/threecode/util.nim +++ b/src/threecode/util.nim @@ -1,4 +1,5 @@ -import std/[net, os, sequtils, strformat, strutils, tables, unicode, times] +import std/[net, os, sequtils, strformat, strutils, tables, times] +import std/unicode except strip import types import threecode/unicodewidth diff --git a/src/threecode/web.nim b/src/threecode/web.nim index 080125c..8051f37 100644 --- a/src/threecode/web.nim +++ b/src/threecode/web.nim @@ -5,7 +5,8 @@ ## No external binaries, no scripting runtimes, pure Nim httpclient + a ## hand-rolled HTML-to-text pass. -import std/[httpclient, strutils, uri, unicode, tables] +import std/[httpclient, strutils, uri, tables] +import std/unicode except strip import util const UserAgent = "Mozilla/5.0 (X11; Linux x86_64) 3code/web"