aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-07-10 12:19:01 +0200
committerbptato <nincsnevem662@gmail.com>2023-07-10 12:19:01 +0200
commit8d247fd79424f1e4c5ac6b3fb6642363fd186252 (patch)
tree61d8c4fa8dbc662f47e5d7d4a726f4b5692df31f /src
parentc2da7d485cd6b14c6fe59f8c6fe7e16cdbaa8bfd (diff)
downloadchawan-8d247fd79424f1e4c5ac6b3fb6642363fd186252.tar.gz
term: fix cursorGoto without termcap
Diffstat (limited to 'src')
-rw-r--r--src/display/term.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/display/term.nim b/src/display/term.nim
index 9ed448f9..4334123d 100644
--- a/src/display/term.nim
+++ b/src/display/term.nim
@@ -120,7 +120,7 @@ proc cursorGoto(term: Terminal, x, y: int): string =
when termcap_found:
return $tgoto(term.ccap cm, cint(x), cint(y))
else:
- return HVP(y, x)
+ return HVP(y + 1, x + 1)
proc clearEnd(term: Terminal): string =
when termcap_found: