taviso / 123elf

A native port of Lotus 1-2-3 to Linux.
1.17k stars 59 forks source link

Tidy help messages #58

Open jserv opened 2 years ago

jserv commented 2 years ago

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.

taviso commented 2 years ago

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

jserv commented 2 years ago

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.