123elf icon indicating copy to clipboard operation
123elf copied to clipboard

Tidy help messages

Open jserv opened this issue 2 years ago • 2 comments

After the completion of function 'read_startup_ri_file', a trailing newline character was written into the terminal. Therefore, there was obviously a blank line between the original 1-2-3 help message and our own. Using ANSI escape code, we can move cursor to the beginning of the previous line and then dump the desired messages seamlessly.

jserv avatar May 30 '22 17:05 jserv

Thanks, good point - wish there was an easy way to clean that up, I'm nervous about putting raw control codes in there! Maybe it's okay with isatty() though

taviso avatar May 30 '22 22:05 taviso

Thanks, good point - wish there was an easy way to clean that up, I'm nervous about putting raw control codes in there! Maybe it's okay with isatty() though

Alternatively, we can modify the format string in file root/lotus/123.v10/ri/USA-English/123.ri -- remove the trailing $ character in item 312. And then, everything works perfectly. However, I have no idea how to automate.

jserv avatar May 31 '22 02:05 jserv