Skip to content
Snippets Groups Projects
Commit 957a1d7f authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Use '[' Ctrl-A code to move cursor to first column, not a bare '\r'

A bare '\r' doesn't move the cursor to the first column in PETSCII terminals.
The '[' Ctrl-A code moves the cursor to the first column with multiple
cursor-left sequences, if necessary.

Ideally this sequence would be part of the text.dat string instead of
hard-coded here.

This fixes issue #561
parent d6f707eb
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #4225 passed
......@@ -227,7 +227,7 @@ int sbbs_t::listfiles(const uint dirnum, const char *filespec, FILE* tofile, con
}
else {
sprintf(hdr,text[ShortHdrLib],i+1,cfg.lib[usrlib[i]]->sname);
bputs("\r\1>\r\n");
bputs("\1[\1>\r\n");
bputs(hdr);
c=bstrlen(hdr);
}
......@@ -256,7 +256,7 @@ int sbbs_t::listfiles(const uint dirnum, const char *filespec, FILE* tofile, con
disp=1;
if(mode&(FL_EXT | FL_VIEW)) {
if(!found)
bputs("\r\1>");
bputs("\1[\1>");
if(!viewfile(f, INT_TO_BOOL(mode & FL_EXT))) {
found = -1;
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment