Menu

#6 Cannot enter colon into command buffer

open
nobody
None
5
2003-09-28
2003-09-28
No

It is currently impossible to enter a : (colon) when
typing commands. This appears to be due to the colon
having a special meaning. Both entry.c (line 448) and
parse.c (line 4488) use the call

Print(OUTPUT_WINDOW,":");

for some purpose other than adding the character to the
command buffer. However, the conditional that checks
for this (hardware.c line 207, in AddToRingBuffer() )
doesn't differentiate between this special meaning and
someone typing a `:' into the input buffer.

I suspect a workaround would be to change the two
occurrences mentioned above, so that they send a
different character (one that is unused/unlikely to be
typed by the user), and check for that character
instead in AddToRingBuffer(). I cannot work out
exactly what this block of code is for, though, so this
might not be the best fix.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB