aboutsummaryrefslogtreecommitdiff
path: root/conio
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2016-02-19 06:43:11 -0500
committerB. Watson <yalhcru@gmail.com>2016-02-19 06:43:11 -0500
commit08fd9af5a9247f5c47b926259ed45cf6a437e67d (patch)
tree5b1b9baf7da562d74493121caa71bc64619b3ea4 /conio
parent53c1088fff0e8c8730622449dc863bbab938801c (diff)
downloadtaipan-08fd9af5a9247f5c47b926259ed45cf6a437e67d.tar.gz
save a byte in timed_getch, add conio doc
Diffstat (limited to 'conio')
-rw-r--r--conio/README15
1 files changed, 15 insertions, 0 deletions
diff --git a/conio/README b/conio/README
index d2ba1c7..bfe8187 100644
--- a/conio/README
+++ b/conio/README
@@ -1 +1,16 @@
This is a modified conio. It doesn't draw a cursor at all.
+
+More particularly, the standard cc65 conio always draws a cursor, whether
+the cursor is enabled or not. When it's disabled, the cursor is drawn
+as a space character.
+
+Benefits of doing this:
+
+- Faster and smoother screen updates
+- Slightly smaller code (20-30 bytes)
+- No more "cursor ghosts" at timed prompts
+- No need for a hide_cursor() function
+
+Disadvantage: Have to draw the cursor myself when needed. It turns out
+that only agetc() needs to do this, so not a big deal. Also had to
+add an agetc_no_cursor() for timed_getch() to use.