[HN Gopher] Controlling the terminal with Common Lisp (2020)
       ___________________________________________________________________
        
       Controlling the terminal with Common Lisp (2020)
        
       Author : winkywooster
       Score  : 67 points
       Date   : 2021-10-24 16:36 UTC (6 hours ago)
        
 (HTM) web link (turtleware.eu)
 (TXT) w3m dump (turtleware.eu)
        
       | rcgorton wrote:
       | Uh, Lisp is NOT capable of doing command line support WITHOUT C
       | interfaces? REALLY?
        
       | ksaj wrote:
       | This is what a Lisp tutorial should look like. Well organized,
       | and definitely goes in depth without losing steam unlike most of
       | the 'toots out there.
       | 
       | As someone else pointed out here, the mouse-over highlighting for
       | the code snippets is really unique. Especially how it changes
       | mode based on cursor position. I wouldn't want my editor doing
       | that, but it really makes reading code and surrounding text easy
       | on the eyes.
        
       | WalterGR wrote:
       | Lots of great articles about Common Lisp on that site:
       | https://turtleware.eu/
       | 
       | The second part of the article was submitted about a year ago:
       | https://news.ycombinator.com/item?id=23576447
        
         | jackdaniel wrote:
         | Thanks!
        
       | tempodox wrote:
       | Wow, mouse-over the Lisp code in this article. The coloring of
       | nested expressions is awesome. I wish my editor could do that.
        
         | agumonkey wrote:
         | It's an old css trick IIRC nested :hover rules
        
         | ootsootsoots wrote:
         | Just adding tapping on it does the same in Firefox on iOS
         | 
         | Something like an auto-select of the code that makes up the
         | entire scope for the line in question.
         | 
         | Gonna have to see if I can get vim to do that.
        
         | cyberbanjo wrote:
         | I noticed something similar recently in the GNU Guix docs, try
         | mousing over the S-expressions
         | 
         | https://guix.gnu.org/manual/en/html_node/Database-Services.h...
         | 
         | Your editor probably can do that! Emacs and VSCode at least
         | both can. Search for 'rainbow blocks' or 'rainbow parens' or
         | 'rainbow delimiters' extensions.
        
           | openfuture wrote:
           | You can also click the functions to jump to definition (they
           | are not only colored, they are also hyperlinks!)
        
             | agumonkey wrote:
             | that is cute, next thing you know and it will launch a
             | guile.js repl to run sandboxed tutorials
        
         | johnisgood wrote:
         | You mean the background? Because otherwise I do have such a
         | thing in Emacs, it is called Rainbow Delimiters.
        
           | tempodox wrote:
           | Vim has something analogous, as "static" syntax coloring, but
           | my vim is mouse-agnostic and thus can't react to mouse-overs.
        
         | register wrote:
         | This is the standard coloring that comes with Coleslaw which is
         | a Jekyll alternative written in common lisp:
         | https://github.com/coleslaw-org/coleslaw. I believe the website
         | is using that or at least it uses one of his default themes.
        
       | [deleted]
        
       | cain wrote:
       | Cool! I went over something similar in an old blog post
       | (https://joellord.dev/blog/posts/Build-a-Text-Editor-in-Lisp-...)
       | only I did the C portion in Common Lisp too, using CFFI + Grovel.
        
       ___________________________________________________________________
       (page generated 2021-10-24 23:01 UTC)