aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwustho <benawiadha@gmail.com>2020-03-01 21:50:23 +0700
committerwustho <benawiadha@gmail.com>2020-03-01 21:50:23 +0700
commitcb3a2c02fb9ff9985911f806a8d25c76a9ec9959 (patch)
tree280d9f102a91b138b48b00ba06fe0fa4de451997
parent7e05512622bdb3ac03b4cd533cacc7f6edad06ee (diff)
downloadepy-cb3a2c02fb9ff9985911f806a8d25c76a9ec9959.tar.gz
Minor input_prompt cursor position.
-rwxr-xr-xepy.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/epy.py b/epy.py
index 2842836..7400577 100755
--- a/epy.py
+++ b/epy.py
@@ -605,7 +605,7 @@ def input_prompt(prompt):
init_text = ""
stat.addstr(0, 0, " " + prompt + ":", curses.A_REVERSE)
- stat.addstr(0, 7, init_text)
+ stat.addstr(0, len(prompt)+2, init_text)
stat.refresh()
try:
@@ -636,7 +636,7 @@ def input_prompt(prompt):
stat.clear()
stat.addstr(0, 0, " " + prompt + ":", curses.A_REVERSE)
- stat.addstr(0, 7, init_text)
+ stat.addstr(0, len(prompt)+2, init_text)
stat.refresh()
except KeyboardInterrupt:
stat.clear()