From c839b297c25ca0d07cccd633176f024b5e737ef6 Mon Sep 17 00:00:00 2001 From: Jory Schossau Date: Thu, 25 Jun 2026 11:39:18 -0700 Subject: [PATCH 1/2] adds full repo path to streamhttp, ttty; nimble package file --- threecode.nimble | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/threecode.nimble b/threecode.nimble index 891ad5a..f4e74d9 100644 --- a/threecode.nimble +++ b/threecode.nimble @@ -6,8 +6,8 @@ srcDir = "src" namedBin["threecode"] = "3code" requires "nim >= 2.0.0" -requires "streamhttp >= 0.2.0" -requires "ttty >= 0.2.0" +requires "https://github.com/capocasa/streamhttp >= 0.2.0" +requires "https://github.com/capocasa/ttty >= 0.2.0" requires "unicodedb >= 0.13.0" requires "https://github.com/capocasa/tinotify >= 0.1.0" From 3d09ab0884973610262b91dd999aaf990efb6da7 Mon Sep 17 00:00:00 2001 From: Jory Schossau Date: Thu, 25 Jun 2026 12:57:59 -0700 Subject: [PATCH 2/2] fixes strutils & unicode ambiguity for strip() --- src/threecode/fatprompt/runtime.nim | 3 ++- src/threecode/util.nim | 3 ++- src/threecode/web.nim | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/threecode/fatprompt/runtime.nim b/src/threecode/fatprompt/runtime.nim index 52167f5..60a659d 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 9cab01a..1ea0ecf 100644 --- a/src/threecode/util.nim +++ b/src/threecode/util.nim @@ -1,4 +1,5 @@ -import std/[net, os, sequtils, strformat, strutils, unicode, times] +import std/[net, os, sequtils, strformat, strutils, 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"