Tuesday, 29 September 2015

Re: [gccsdk] ^H^H^H

In message <6e71c20a55.gavin@wra1th.plus.com>
Gavin Wraith <gavin@wra1th.plus.com> wrote:

> Running a C program in a Taskwindow. It reads from stdio and
> outputs it. The backspace key, instead of backspacing,
> produces ^H. I am assuming that this is because the program
> is using gets and puts from the stdio library. Is that
> right? Are there alternative functions that interpret control
> sequences gracefully rather than display control characters with a
> ^-prefix?
>
I'll leave the alternative functions to someone who knows them,
But a quick fix for StrongEd is to have a Taskwindow ModeFile
with
Delete CharstoBuffer("<4>")
Left CharstoBuffer("<2>")
Right CharstoBuffer("<6>")
Up CharstoBuffer("<16>")
Down CharstoBuffer("<14>")

optionally, to enable the use of Ctrl-C that some programs use
change
# c-C ReleaseShiftCtrl BlockCopy
to
cs-C ReleaseShiftCtrl BlockCopy
I also have
c-C CharstoBuffer("<3>")

The arrow key changes allow programs with line editting to have history

Cheers Ron M.

_______________________________________________
GCCSDK mailing list gcc@gccsdk.riscos.info
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK

No comments:

Post a Comment