diff options
author | bptato <nincsnevem662@gmail.com> | 2023-11-21 02:07:01 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-11-21 02:07:01 +0100 |
commit | cf948921164d7d8a156de8b9d1b256da0d3e1ce7 (patch) | |
tree | 04b40fc8fdc7ff1e6eb0512a645de13b52fcf9d6 /src/display | |
parent | 42809ced4920e1cf84b6ee61d9ee8131aa96adff (diff) | |
download | chawan-cf948921164d7d8a156de8b9d1b256da0d3e1ce7.tar.gz |
pager: remove pager.tty member
now it's a function
Diffstat (limited to 'src/display')
-rw-r--r-- | src/display/term.nim | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/display/term.nim b/src/display/term.nim index 605361bd..cbfa07ca 100644 --- a/src/display/term.nim +++ b/src/display/term.nim @@ -50,7 +50,7 @@ type cs*: Charset config: Config infile: File - outfile: File + outfile*: File cleared: bool canvas: FixedGrid pcanvas: FixedGrid @@ -614,8 +614,9 @@ proc restart*(term: Terminal) = term.write(term.enableAltScreen()) proc newTerminal*(outfile: File, config: Config, attrs: WindowAttributes): Terminal = - let term = new Terminal - term.outfile = outfile - term.config = config + let term = Terminal( + outfile: outfile, + config: config + ) term.windowChange(attrs) return term |