diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2023-10-31 00:03:04 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-30 17:03:04 +0100 |
commit | 4d11d0619d11d8aecdaff998981efcd054de9760 (patch) | |
tree | d098736002228d600e3232f6ab6d8347872224c8 /lib/pure/terminal.nim | |
parent | 403e0118ae8d099384e9bd6a046c2114538503b8 (diff) | |
download | Nim-4d11d0619d11d8aecdaff998981efcd054de9760.tar.gz |
complete std prefixes for stdlib (#22887)
follow up https://github.com/nim-lang/Nim/pull/22851 follow up https://github.com/nim-lang/Nim/pull/22873
Diffstat (limited to 'lib/pure/terminal.nim')
-rw-r--r-- | lib/pure/terminal.nim | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/pure/terminal.nim b/lib/pure/terminal.nim index da95ac32a..53b3d61da 100644 --- a/lib/pure/terminal.nim +++ b/lib/pure/terminal.nim @@ -58,13 +58,13 @@ runnableExamples("-r:off"): stdout.styledWriteLine(fgRed, "red text ", styleBright, "bold red", fgDefault, " bold text") -import macros -import strformat -from strutils import toLowerAscii, `%`, parseInt -import colors +import std/macros +import std/strformat +from std/strutils import toLowerAscii, `%`, parseInt +import std/colors when defined(windows): - import winlean + import std/winlean when defined(nimPreviewSlimSystem): import std/[syncio, assertions] @@ -100,7 +100,7 @@ const stylePrefix = "\e[" when defined(windows): - import winlean, os + import std/[winlean, os] const DUPLICATE_SAME_ACCESS = 2 @@ -257,7 +257,7 @@ when defined(windows): if f == stderr: term.hStderr else: term.hStdout else: - import termios, posix, os, parseutils + import std/[termios, posix, os, parseutils] proc setRaw(fd: FileHandle, time: cint = TCSAFLUSH) = var mode: Termios @@ -922,7 +922,7 @@ when defined(windows): stdout.write "\n" else: - import termios + import std/termios proc readPasswordFromStdin*(prompt: string, password: var string): bool {.tags: [ReadIOEffect, WriteIOEffect].} = @@ -978,7 +978,7 @@ proc isTrueColorSupported*(): bool = return getTerminal().trueColorIsSupported when defined(windows): - import os + import std/os proc enableTrueColors*() = ## Enables true color. |