projects
/
pforth
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed POSIX IO, (ACCEPT) now emits SPACE at end of line.
[pforth]
/
csrc
/
pf_io.c
diff --git
a/csrc/pf_io.c
b/csrc/pf_io.c
index
3f57902
..
2cd3d3d
100644
(file)
--- a/
csrc/pf_io.c
+++ b/
csrc/pf_io.c
@@
-87,7
+87,8
@@
cell ioKey( void )
** Receive line from keyboard.
\r
** Return number of characters enterred.
\r
*/
\r
** Receive line from keyboard.
\r
** Return number of characters enterred.
\r
*/
\r
-#define BACKSPACE (8)
\r
+#define SPACE (0x20)
\r
+#define BACKSPACE (0x08)
\r
#define DELETE (0x7F)
\r
cell ioAccept( char *buffer, cell maxChars )
\r
{
\r
#define DELETE (0x7F)
\r
cell ioAccept( char *buffer, cell maxChars )
\r
{
\r
@@
-135,6
+136,7
@@
DBUGX(("ioAccept(0x%x, 0x%x)\n", buffer, len ));
\r
gotline:
\r
sdDisableInput();
\r
\r
gotline:
\r
sdDisableInput();
\r
+ sdTerminalEcho( SPACE );
\r
\r
/* NUL terminate line to simplify printing when debugging. */
\r
if( len < maxChars ) p[len] = '\0';
\r
\r
/* NUL terminate line to simplify printing when debugging. */
\r
if( len < maxChars ) p[len] = '\0';
\r