Re:Tamgucalc: A spreadsheet in character mode with Lisp form...
by clauderoux on Sunday July 05, 2020 @07:58AM
(#23738024)
please accept my apologies, I should be more verbose in my comments. The whole implementation is in tamgusys.cxx. See inmouse and outmouse for more details. Basically, inmouse activates the mouse catching events, which are sent through getchar. Once, the mouse has been activated, you can use some primitives mouedown1 our mouseup, which takes as input the string returned by getchar and returns the x,y coordinates
[ Parent
| on HN ]
Re:Tamgucalc: A spreadsheet in character mode with Lisp form...
by ComputerGuru on Sunday July 05, 2020 @08:20AM
(#23738136)
No worries, thanks for taking the time to explain! I find commit messages help “future me” more than anyone else, I never regret the time it takes to flesh them out (and tend to regret when I don’t).
Re:Tamgucalc: A spreadsheet in character mode with Lisp form...
by clauderoux on Sunday July 05, 2020 @08:27AM
(#23738185)
Actually, I have another private GitHub, where I do most of my experiments and which is bit more informative. When my code executes, I then push it on the official one, hence the lack of comments.
Re:Tamgucalc: A spreadsheet in character mode with Lisp form...
by clauderoux on Tuesday July 07, 2020 @09:58AM
(#23759319)
By the way, I have updated tamgusys.h to integrate mouse support in Windows consoles...