Re: httpGate for non-picolisp apps
Hi Tomas, > > httpGate does have such a fallback: If a file (or symbolic link) named > > "void" > > exists, it is sent as a reply for terminated sessions. > > thanks, this is good to know as this didn't exist when I needed it. I think it exists since early on. But was not documented ;) > Where should such file or symlink exist? Do you have an example? It is looked for in the directory where httpGate was started. I have it always at the application's working directory, together with symlinks to the TLS certificates. At boot, root does something like cd /home/app bin/httpGate 80 7fach/names bin/httpGate 443 7fach/names pem/7fach.key,pem/7fach.crt ☺/ A!ex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
Re: httpGate for non-picolisp apps
Hi Alex, On Sat 29 Aug 2020 at 09:22, Alexander Burger wrote: >> This could be fixed by adding a fallback case to httpGate. > > httpGate does have such a fallback: If a file (or symbolic link) named "void" > exists, it is sent as a reply for terminated sessions. It may contain > anything, > e.g. a redirect to the application's login page. thanks, this is good to know as this didn't exist when I needed it. Where should such file or symlink exist? Do you have an example? Cheers, Tomas -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
Re: vip send select lines to command window
thanks alex! It works perfectly On Mon, Aug 31, 2020, 01:12 Alexander Burger wrote: > Hi Bruno, > > > In vip, if I have a file like: > > _ > > # file with a single line of code > > (prin "print me on the command window") > > ___ > > > > is there a way to select the line with the code and send it to the > command > > window for execution, like slime for emacs? > > Yes. Lisp expressions can be evaluaded in the command window by starting > the > line with a colon followed by a space. Without a space they are taken as a > normal editor commands like ":e" or ":w". > > In Vip, the command window is a normal editor window. You can resize it > with "+" > and "-", and change the focus to it with "qj". > > Thus, to do what you ask above, copy the line with "yy", go to the command > window, and type ":I: " to insert ": ", and hit . > > You can edit all lines in the command window by going up with "k", and re- > executing them by pressing . > > To go directly from a normal edit window to the command window, you can > also use > ":" (like in Vim) or . Both print a ccolon. "/" is like in Vim, and > "&" > is similar but searches for Lisp words instead of normal (sub)strings: > "" > is analog to Vim's "/\". > > >From a normal edit window, typing two spaces, an expression, and > will > evaluate it and immediately change the focus back to the original window. > > ☺/ A!ex > > -- > UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe >
Unsubscribe
Re: vip send select lines to command window
Hi Bruno, > In vip, if I have a file like: > _ > # file with a single line of code > (prin "print me on the command window") > ___ > > is there a way to select the line with the code and send it to the command > window for execution, like slime for emacs? Yes. Lisp expressions can be evaluaded in the command window by starting the line with a colon followed by a space. Without a space they are taken as a normal editor commands like ":e" or ":w". In Vip, the command window is a normal editor window. You can resize it with "+" and "-", and change the focus to it with "qj". Thus, to do what you ask above, copy the line with "yy", go to the command window, and type ":I: " to insert ": ", and hit . You can edit all lines in the command window by going up with "k", and re- executing them by pressing . To go directly from a normal edit window to the command window, you can also use ":" (like in Vim) or . Both print a ccolon. "/" is like in Vim, and "&" is similar but searches for Lisp words instead of normal (sub)strings: "" is analog to Vim's "/\". >From a normal edit window, typing two spaces, an expression, and will evaluate it and immediately change the focus back to the original window. ☺/ A!ex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe