Skip to content
Snippets Groups Projects
Commit c1a47be9 authored by rswindell's avatar rswindell
Browse files

Help text attribute codes (Ctrl-A for bold and Ctrl-B for inverse) can now be

replaced with printable ASCII chars: ` for bold and ~ for inverse. Improves
compatibility with source editors that don't correctly display/edit ctrl chars.
parent d83641a8
No related branches found
No related tags found
No related merge requests found
......@@ -1784,10 +1784,10 @@ void help()
if(hbuf[j]==LF) {
while(i%(76*2)) i++;
i+=2; }
else if(hbuf[j]==2) { /* Ctrl-b toggles inverse */
else if(hbuf[j]==2 || hbuf[j]=='~') { /* Ctrl-b toggles inverse */
inverse=!inverse;
i-=2; }
else if(hbuf[j]==1) { /* Ctrl-a toggles high intensity */
else if(hbuf[j]==1 || hbuf[j]=='`') { /* Ctrl-a toggles high intensity */
high=!high;
i-=2; }
else if(hbuf[j]!=CR) {
......
......@@ -1722,10 +1722,10 @@ void help()
if(hbuf[j]==LF) {
while(i%(76*2)) i++;
i+=2; }
else if(hbuf[j]==2) { /* Ctrl-b toggles inverse */
else if(hbuf[j]==2 || hbuf[j]=='~') { /* Ctrl-b toggles inverse */
inverse=!inverse;
i-=2; }
else if(hbuf[j]==1) { /* Ctrl-a toggles high intensity */
else if(hbuf[j]==1 || hbuf[j]=='`') { /* Ctrl-a toggles high intensity */
high=!high;
i-=2; }
else if(hbuf[j]!=CR) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment