fixes #11005
This commit is contained in:
parent
572735bbfa
commit
3ceb258ebf
1 changed files with 3 additions and 3 deletions
|
|
@ -35,9 +35,9 @@ type
|
||||||
oldStdoutAttr: int16
|
oldStdoutAttr: int16
|
||||||
oldStderrAttr: int16
|
oldStderrAttr: int16
|
||||||
|
|
||||||
var gTerm {.threadvar.}: PTerminal
|
var gTerm {.threadvar.}: owned(PTerminal)
|
||||||
|
|
||||||
proc newTerminal(): PTerminal {.gcsafe.}
|
proc newTerminal(): owned(PTerminal) {.gcsafe.}
|
||||||
|
|
||||||
proc getTerminal(): PTerminal {.inline.} =
|
proc getTerminal(): PTerminal {.inline.} =
|
||||||
if isNil(gTerm):
|
if isNil(gTerm):
|
||||||
|
|
@ -900,7 +900,7 @@ proc disableTrueColors*() =
|
||||||
else:
|
else:
|
||||||
term.trueColorIsEnabled = false
|
term.trueColorIsEnabled = false
|
||||||
|
|
||||||
proc newTerminal(): PTerminal =
|
proc newTerminal(): owned(PTerminal) =
|
||||||
new result
|
new result
|
||||||
when defined(windows):
|
when defined(windows):
|
||||||
initTerminal(result)
|
initTerminal(result)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue