Re: [Chicken-users] replacement for rlwrap on MS Windows, MinGW
From: Jim Ursetto zbignie...@gmail.com Subject: Re: [Chicken-users] replacement for rlwrap on MS Windows, MinGW Date: Fri, 26 Jul 2013 01:29:45 -0500 If you're going to go the Emacs route, it's probably even better to use run-scheme from cmuscheme.el, as you may then evaluate Scheme expressions from any buffer in the interpreter of your choice. I'm pretty sure this works on Windows. Well, I hope it does. It works on mingw if you use csi -:c as the name of the interpreter: (setq scheme-program-name csi -:c) (run-scheme) Otherwise, no output appears. cheers, felix ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] replacement for rlwrap on MS Windows, MinGW
* Claude Marinier claudem...@gmail.com [130726 01:35]: On Thu, 25 Jul 2013, Christian Kellermann wrote: * Christian Kellermann ck...@pestilenz.org [130725 10:48]: * Christian Kellermann ck...@pestilenz.org [130725 10:29]: * Peter Bex peter@xs4all.nl [130725 08:59]: On Wed, Jul 24, 2013 at 06:57:56PM -0400, Claude Marinier wrote: Just to make sure we are talking about the same thing. The context is using the REPL on MS Windows. I prefer to use MinGW instead of Cygwin. Are you saying that csi can be built to use parley to provide better history and line editing? That's not neccessary; you can simply build parley and load it into your csirc startup file and it will take care of the rest. See the parley manual page for more info on how to do that. Can this also be done on MS Windows? I don't see why it shouldn't work, but it probably hasn't been tested yet. Just give it a go and see how far you get. I see that stty needs some patching, I will see what I can do. Alex, have you got a stty version that's known to work on windows? Ok, as a quick fix you need to chicken-install -r stty and comment out three occasions of ECHOPRT. At least parley should work then as this flag isn't used. Please tell me how far you get. I retrieved the stty code, commented out the lines which reference ECHOPRT, and tried to build install stty. I am not sure how to proceed from there. I expect chicken-install has a switch to build and install from the current directory. Yes, run chicken-install in that directory without arguments. Trying 'chicken-install stty' produced much activity as dependencied were handles, then it died with the following error. stty.c:13:21: fatal error: termios.h: No such file or directory compilation terminated. Ah ok, yet another dependency that does not come with mingw. With the above it works on cygwin at least, so I will propose a patch for stty for that case. Thanks for testing, Christian -- In the world, there is nothing more submissive and weak than water. Yet for attacking that which is hard and strong, nothing can surpass it. --- Lao Tzu ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] replacement for rlwrap on MS Windows, MinGW
Greetings, I have stumbled upon a potentially useful tool for Scheme development on MS Windows. It comes to us from the alien world of Lisp (it's actually written in C++, Daan just likes Lisp). http://www.daansystems.com/lispide/ So far, so good. I configured it to use its Scheme keyword set and told it use some other Scheme interpreter. The latter is temporary: MinGW Cygwin are still interfering with each other and csi won't run. The editor looks good (uses Scintilla). One can highlight code, click the pair of red parentheses, and the code runs in the REPL window. One can also type directly in the REPL window which supports command recall with Ctrl- Ctrl-. This is great! Note that 1) I appreciate the emacs suggestions but am firmly in the vim world, and 2) I have had mixed results with slimc and vimrepl (but vim package the system is neat). vim REPL - http://www.vim.org/scripts/script.php?script_id=4336 This exercise has increased my appreciation for Linux and my sympathy for Windows developers. :-) -- Claude Marinier ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] replacement for rlwrap on MS Windows, MinGW
On Wed, Jul 24, 2013 at 06:57:56PM -0400, Claude Marinier wrote: Just to make sure we are talking about the same thing. The context is using the REPL on MS Windows. I prefer to use MinGW instead of Cygwin. Are you saying that csi can be built to use parley to provide better history and line editing? That's not neccessary; you can simply build parley and load it into your csirc startup file and it will take care of the rest. See the parley manual page for more info on how to do that. Can this also be done on MS Windows? I don't see why it shouldn't work, but it probably hasn't been tested yet. Just give it a go and see how far you get. Cheers, Peter -- http://www.more-magic.net ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] replacement for rlwrap on MS Windows, MinGW
* Peter Bex peter@xs4all.nl [130725 08:59]: On Wed, Jul 24, 2013 at 06:57:56PM -0400, Claude Marinier wrote: Just to make sure we are talking about the same thing. The context is using the REPL on MS Windows. I prefer to use MinGW instead of Cygwin. Are you saying that csi can be built to use parley to provide better history and line editing? That's not neccessary; you can simply build parley and load it into your csirc startup file and it will take care of the rest. See the parley manual page for more info on how to do that. Can this also be done on MS Windows? I don't see why it shouldn't work, but it probably hasn't been tested yet. Just give it a go and see how far you get. The only issue I see is that the windows terminal does not support one flag or the other that parley sets. Please let me know how far you get, I will be happy to help. The linenoise egg should also work fine, the procedure is similar to parley and documented in the egg's documentation. I have started with linenoise first, then the blocking calls during FFI forced me to implement a similar thing in pure scheme to be more scheduler friendly. Hence parley has been made. Kind regards, Christian -- In the world, there is nothing more submissive and weak than water. Yet for attacking that which is hard and strong, nothing can surpass it. --- Lao Tzu ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] replacement for rlwrap on MS Windows, MinGW
* Christian Kellermann ck...@pestilenz.org [130725 10:29]: * Peter Bex peter@xs4all.nl [130725 08:59]: On Wed, Jul 24, 2013 at 06:57:56PM -0400, Claude Marinier wrote: Just to make sure we are talking about the same thing. The context is using the REPL on MS Windows. I prefer to use MinGW instead of Cygwin. Are you saying that csi can be built to use parley to provide better history and line editing? That's not neccessary; you can simply build parley and load it into your csirc startup file and it will take care of the rest. See the parley manual page for more info on how to do that. Can this also be done on MS Windows? I don't see why it shouldn't work, but it probably hasn't been tested yet. Just give it a go and see how far you get. I see that stty needs some patching, I will see what I can do. Alex, have you got a stty version that's known to work on windows? Cheers, Christian -- In the world, there is nothing more submissive and weak than water. Yet for attacking that which is hard and strong, nothing can surpass it. --- Lao Tzu ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] replacement for rlwrap on MS Windows, MinGW
* Christian Kellermann ck...@pestilenz.org [130725 10:48]: * Christian Kellermann ck...@pestilenz.org [130725 10:29]: * Peter Bex peter@xs4all.nl [130725 08:59]: On Wed, Jul 24, 2013 at 06:57:56PM -0400, Claude Marinier wrote: Just to make sure we are talking about the same thing. The context is using the REPL on MS Windows. I prefer to use MinGW instead of Cygwin. Are you saying that csi can be built to use parley to provide better history and line editing? That's not neccessary; you can simply build parley and load it into your csirc startup file and it will take care of the rest. See the parley manual page for more info on how to do that. Can this also be done on MS Windows? I don't see why it shouldn't work, but it probably hasn't been tested yet. Just give it a go and see how far you get. I see that stty needs some patching, I will see what I can do. Alex, have you got a stty version that's known to work on windows? Ok, as a quick fix you need to chicken-install -r stty and comment out three occasions of ECHOPRT. At least parley should work then as this flag isn't used. Please tell me how far you get. Kind regards, Christian -- In the world, there is nothing more submissive and weak than water. Yet for attacking that which is hard and strong, nothing can surpass it. --- Lao Tzu ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] replacement for rlwrap on MS Windows, MinGW
On Thu, 25 Jul 2013, Christian Kellermann wrote: * Christian Kellermann ck...@pestilenz.org [130725 10:48]: * Christian Kellermann ck...@pestilenz.org [130725 10:29]: * Peter Bex peter@xs4all.nl [130725 08:59]: On Wed, Jul 24, 2013 at 06:57:56PM -0400, Claude Marinier wrote: Just to make sure we are talking about the same thing. The context is using the REPL on MS Windows. I prefer to use MinGW instead of Cygwin. Are you saying that csi can be built to use parley to provide better history and line editing? That's not neccessary; you can simply build parley and load it into your csirc startup file and it will take care of the rest. See the parley manual page for more info on how to do that. Can this also be done on MS Windows? I don't see why it shouldn't work, but it probably hasn't been tested yet. Just give it a go and see how far you get. I see that stty needs some patching, I will see what I can do. Alex, have you got a stty version that's known to work on windows? Ok, as a quick fix you need to chicken-install -r stty and comment out three occasions of ECHOPRT. At least parley should work then as this flag isn't used. Please tell me how far you get. I retrieved the stty code, commented out the lines which reference ECHOPRT, and tried to build install stty. I am not sure how to proceed from there. I expect chicken-install has a switch to build and install from the current directory. Trying 'chicken-install stty' produced much activity as dependencied were handles, then it died with the following error. stty.c:13:21: fatal error: termios.h: No such file or directory compilation terminated. -- Claude Marinier ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] replacement for rlwrap on MS Windows, MinGW
Using csi with parley works well on Linux (Debian Wheezy). On MS Windows, Cygwin and MinGW are stepping on each other's toes. I have to clean-up the mess. Time to re-visit the choice between Cygwin and MinGW. The concern some people have about the Cygwin DLL and the GPL does not affect me for now. If I publish, I will likely use a three clause BSD license which is compatible, right? The obvious technical reason to choose one over the other is POSIX support. Are there others? Hum ... maybe I should stick with Linux. :-) On Thu, Jul 25, 2013 at 7:34 PM, Claude Marinier claudem...@gmail.comwrote: On Thu, 25 Jul 2013, Christian Kellermann wrote: * Christian Kellermann ck...@pestilenz.org [130725 10:48]: * Christian Kellermann ck...@pestilenz.org [130725 10:29]: * Peter Bex peter@xs4all.nl [130725 08:59]: On Wed, Jul 24, 2013 at 06:57:56PM -0400, Claude Marinier wrote: Just to make sure we are talking about the same thing. The context is using the REPL on MS Windows. I prefer to use MinGW instead of Cygwin. Are you saying that csi can be built to use parley to provide better history and line editing? That's not neccessary; you can simply build parley and load it into your csirc startup file and it will take care of the rest. See the parley manual page for more info on how to do that. Can this also be done on MS Windows? I don't see why it shouldn't work, but it probably hasn't been tested yet. Just give it a go and see how far you get. I see that stty needs some patching, I will see what I can do. Alex, have you got a stty version that's known to work on windows? Ok, as a quick fix you need to chicken-install -r stty and comment out three occasions of ECHOPRT. At least parley should work then as this flag isn't used. Please tell me how far you get. I retrieved the stty code, commented out the lines which reference ECHOPRT, and tried to build install stty. I am not sure how to proceed from there. I expect chicken-install has a switch to build and install from the current directory. Trying 'chicken-install stty' produced much activity as dependencied were handles, then it died with the following error. stty.c:13:21: fatal error: termios.h: No such file or directory compilation terminated. -- Claude Marinier ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] replacement for rlwrap on MS Windows, MinGW
On the emacs front. You don't have to even set up slime, if all you want is csi w/command history. Just start Emacs, Alt-X shell , type csi and your good to go. Ctrl-Up Arrow to access history. Setting up Slime is worth the effort, but not necessary. On Fri, Jul 26, 2013 at 3:04 AM, Claude Marinier claudem...@gmail.comwrote: Using csi with parley works well on Linux (Debian Wheezy). On MS Windows, Cygwin and MinGW are stepping on each other's toes. I have to clean-up the mess. Time to re-visit the choice between Cygwin and MinGW. The concern some people have about the Cygwin DLL and the GPL does not affect me for now. If I publish, I will likely use a three clause BSD license which is compatible, right? The obvious technical reason to choose one over the other is POSIX support. Are there others? Hum ... maybe I should stick with Linux. :-) On Thu, Jul 25, 2013 at 7:34 PM, Claude Marinier claudem...@gmail.comwrote: On Thu, 25 Jul 2013, Christian Kellermann wrote: * Christian Kellermann ck...@pestilenz.org [130725 10:48]: * Christian Kellermann ck...@pestilenz.org [130725 10:29]: * Peter Bex peter@xs4all.nl [130725 08:59]: On Wed, Jul 24, 2013 at 06:57:56PM -0400, Claude Marinier wrote: Just to make sure we are talking about the same thing. The context is using the REPL on MS Windows. I prefer to use MinGW instead of Cygwin. Are you saying that csi can be built to use parley to provide better history and line editing? That's not neccessary; you can simply build parley and load it into your csirc startup file and it will take care of the rest. See the parley manual page for more info on how to do that. Can this also be done on MS Windows? I don't see why it shouldn't work, but it probably hasn't been tested yet. Just give it a go and see how far you get. I see that stty needs some patching, I will see what I can do. Alex, have you got a stty version that's known to work on windows? Ok, as a quick fix you need to chicken-install -r stty and comment out three occasions of ECHOPRT. At least parley should work then as this flag isn't used. Please tell me how far you get. I retrieved the stty code, commented out the lines which reference ECHOPRT, and tried to build install stty. I am not sure how to proceed from there. I expect chicken-install has a switch to build and install from the current directory. Trying 'chicken-install stty' produced much activity as dependencied were handles, then it died with the following error. stty.c:13:21: fatal error: termios.h: No such file or directory compilation terminated. -- Claude Marinier ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] replacement for rlwrap on MS Windows, MinGW
On Tue, Jul 23, 2013 at 09:01:47PM -0400, Claude Marinier wrote: ConEmu does not seem to provide additional command line editing but it supports ANSI escape sequences. One could do the same with Console2 in combination with ansicon but, yes, ConEmu is better. Linenoise uses just a few ANSI escape sequences which should work with ConEmu. http://wiki.call-cc.org/eggref/4/linenoise https://github.com/antirez/linenoise Could we hack csi.scm to use linenoise? I have doubts. It looks complicated. Maybe I'm missing something, but there are already three eggs which implement line editing and command history for csi. There are the readline, linenoise and parley eggs. Parley is the recommended to use, because it is in pure Scheme and does not block threads while reading from the input port. See http://wiki.call-cc.org/eggref/4/parley for more info. Hope this helps, Peter -- http://www.more-magic.net ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] replacement for rlwrap on MS Windows, MinGW
On Wed, 24 Jul 2013, Peter Bex wrote: On Tue, Jul 23, 2013 at 09:01:47PM -0400, Claude Marinier wrote: ConEmu does not seem to provide additional command line editing but it supports ANSI escape sequences. One could do the same with Console2 in combination with ansicon but, yes, ConEmu is better. Linenoise uses just a few ANSI escape sequences which should work with ConEmu. http://wiki.call-cc.org/eggref/4/linenoise https://github.com/antirez/linenoise Could we hack csi.scm to use linenoise? I have doubts. It looks complicated. Maybe I'm missing something, but there are already three eggs which implement line editing and command history for csi. There are the readline, linenoise and parley eggs. Parley is the recommended to use, because it is in pure Scheme and does not block threads while reading from the input port. See http://wiki.call-cc.org/eggref/4/parley for more info. Hope this helps, Peter -- http://www.more-magic.net Just to make sure we are talking about the same thing. The context is using the REPL on MS Windows. I prefer to use MinGW instead of Cygwin. Are you saying that csi can be built to use parley to provide better history and line editing? Can this also be done on MS Windows? Thanks. -- Claude Marinier ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] replacement for rlwrap on MS Windows, MinGW
On Fri, Jul 19, 2013 at 3:42 PM, Claude Marinier claudem...@gmail.comwrote: Bonjour, Console2 (see URL below) is a reasonable replacement for 'rlwrap' or 'rlfe' when using csi on MS Windows, MinGW. Go to Edit / Settings and change the shell to csi. http://sourceforge.net/projects/console/ Actually, it's not that good. Does anyone have a good replacement for 'rlwrap' ? or something like Console2 but better suited? I heard emacs and slime can do this but that is intimidating for an old vi user. Merci. P.S. I know I could use Cygwin. I thought that Console2's development had been stopped. In any case, if you are looking for a better shell replacement, try ConEmu. It has everything that you could possibly want, even a quake-like console, text progress bar detection, tabs, copy and paste (with the right mouse button!) etc. Also, install Clink for the shell itself. https://code.google.com/p/conemu-maximus5/ I have yet to try running CSI under it, but will probably do it later. -- Stephen ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] replacement for rlwrap on MS Windows, MinGW
ConEmu does not seem to provide additional command line editing but it supports ANSI escape sequences. One could do the same with Console2 in combination with ansicon but, yes, ConEmu is better. Linenoise uses just a few ANSI escape sequences which should work with ConEmu. http://wiki.call-cc.org/eggref/4/linenoise https://github.com/antirez/linenoise Could we hack csi.scm to use linenoise? I have doubts. It looks complicated. On Tue, Jul 23, 2013 at 1:35 PM, Stephen Eilert spedr...@gmail.com wrote: On Fri, Jul 19, 2013 at 3:42 PM, Claude Marinier claudem...@gmail.comwrote: Bonjour, Console2 (see URL below) is a reasonable replacement for 'rlwrap' or 'rlfe' when using csi on MS Windows, MinGW. Go to Edit / Settings and change the shell to csi. http://sourceforge.net/projects/console/ Actually, it's not that good. Does anyone have a good replacement for 'rlwrap' ? or something like Console2 but better suited? I heard emacs and slime can do this but that is intimidating for an old vi user. Merci. P.S. I know I could use Cygwin. I thought that Console2's development had been stopped. In any case, if you are looking for a better shell replacement, try ConEmu. It has everything that you could possibly want, even a quake-like console, text progress bar detection, tabs, copy and paste (with the right mouse button!) etc. Also, install Clink for the shell itself. https://code.google.com/p/conemu-maximus5/ I have yet to try running CSI under it, but will probably do it later. -- Stephen ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] replacement for rlwrap on MS Windows, MinGW
On Fri, Jul 19, 2013 at 02:42:12PM -0400, Claude Marinier wrote: Bonjour, Console2 (see URL below) is a reasonable replacement for 'rlwrap' or 'rlfe' when using csi on MS Windows, MinGW. Go to Edit / Settings and change the shell to csi. http://sourceforge.net/projects/console/ Actually, it's not that good. Does anyone have a good replacement for 'rlwrap' ? or something like Console2 but better suited? I heard emacs and slime can do this but that is intimidating for an old vi user. Merci. P.S. I know I could use Cygwin. -- Claude Marinier If you are using vim you can try slimv[1] which is pretty much slime for vim. Although I have no idea if it works under windows. [1] http://kovisoft.bitbucket.org/tutorial.html -- Envoyé depuis ma GameBoy. ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] replacement for rlwrap on MS Windows, MinGW
Bonjour, Console2 (see URL below) is a reasonable replacement for 'rlwrap' or 'rlfe' when using csi on MS Windows, MinGW. Go to Edit / Settings and change the shell to csi. http://sourceforge.net/projects/console/ Actually, it's not that good. Does anyone have a good replacement for 'rlwrap' ? or something like Console2 but better suited? I heard emacs and slime can do this but that is intimidating for an old vi user. Merci. P.S. I know I could use Cygwin. -- Claude Marinier ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users