123elf
123elf copied to clipboard
Tidy help messages
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.
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
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.