Commit 28753a60 authored by rswindell's avatar rswindell
Browse files

Don't display ^A and ^B characters in help text buffers.

parent 305f12ff
......@@ -8,7 +8,7 @@
* @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
* *
* Copyright 2005 Rob Swindell - http://www.synchro.net/copyright.html *
* Copyright 2010 Rob Swindell - http://www.synchro.net/copyright.html *
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Lesser General Public License *
......@@ -375,6 +375,16 @@ void sethelp(int line, char* file)
helpfile=file;
}
static void uputs(char* ptr)
{
while(*ptr) {
if(*ptr>2)
putchar(*ptr);
ptr++;
}
putchar('\n');
}
/****************************************************************************/
/* Help function. */
/****************************************************************************/
......@@ -429,7 +439,7 @@ void help()
else
strcpy(hbuf,api->helpbuf);
puts(hbuf);
uputs(hbuf);
if(strlen(hbuf)>200) {
printf("Hit enter");
getstr(str,sizeof(str)-1);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment