How to write console apps? Can't find any library, tutorial... at all

All in the title! I'm seeking a way to write a console app that isn't just asking questions one line after another with putStr and getLine. More something like Vim or Emacs when they're in the terminal (i don't wanna create a text ed, but it's the kind of programs i'm seeking to write: which takes up all the space on the screen, where you can write at many different places, and keyboard-driven, up to why not mouse- too, if the terminal (and haskell bindings) allow it. So, does anyone know any library to do this? Any tutorial, maybe? I'm seeking for hours, but every time i type stuff like "console application haskell" in google, it just gives me irrelevant answers --as is the trend it seems subjectively, of those last months, with our bestest G-friend. :( thanks a lot in advance for anything!

Look at the `vty` library which is similar in essence to (n)curses.
It looks you manipulate the terminal's cursor, with different color and
modes.
I think it even has minimal widgets.
On May 20, 2016 12:36 PM, "Silent Leaf"
All in the title!
I'm seeking a way to write a console app that isn't just asking questions one line after another with putStr and getLine. More something like Vim or Emacs when they're in the terminal (i don't wanna create a text ed, but it's the kind of programs i'm seeking to write: which takes up all the space on the screen, where you can write at many different places, and keyboard-driven, up to why not mouse- too, if the terminal (and haskell bindings) allow it.
So, does anyone know any library to do this? Any tutorial, maybe? I'm seeking for hours, but every time i type stuff like "console application haskell" in google, it just gives me irrelevant answers --as is the trend it seems subjectively, of those last months, with our bestest G-friend. :(
thanks a lot in advance for anything! _______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners

In addition to vty, here are a couple of higher-level (I think)
libraries in the same vein:
http://hackage.haskell.org/package/concurrent-output
http://hackage.haskell.org/package/brick
On 2016-05-20 at 12:40, Alex Belanger
Look at the `vty` library which is similar in essence to (n)curses.
It looks you manipulate the terminal's cursor, with different color and modes.
I think it even has minimal widgets.
On May 20, 2016 12:36 PM, "Silent Leaf"
wrote: All in the title!
I'm seeking a way to write a console app that isn't just asking questions one line after another with putStr and getLine. More something like Vim or Emacs when they're in the terminal (i don't wanna create a text ed, but it's the kind of programs i'm seeking to write: which takes up all the space on the screen, where you can write at many different places, and keyboard-driven, up to why not mouse- too, if the terminal (and haskell bindings) allow it.
So, does anyone know any library to do this? Any tutorial, maybe? I'm seeking for hours, but every time i type stuff like "console application haskell" in google, it just gives me irrelevant answers --as is the trend it seems subjectively, of those last months, with our bestest G-friend. :(
thanks a lot in advance for anything! _______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
_______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners

great thanks! yeah higher lever is possibly better i think here :) i'll
compare and try a bit of all :)
Thanks again!
Le vendredi 20 mai 2016, Daniel Bergey
In addition to vty, here are a couple of higher-level (I think) libraries in the same vein:
http://hackage.haskell.org/package/concurrent-output http://hackage.haskell.org/package/brick
On 2016-05-20 at 12:40, Alex Belanger
wrote: Look at the `vty` library which is similar in essence to (n)curses.
It looks you manipulate the terminal's cursor, with different color and modes.
I think it even has minimal widgets.
On May 20, 2016 12:36 PM, "Silent Leaf"
wrote: All in the title!
I'm seeking a way to write a console app that isn't just asking questions one line after another with putStr and getLine. More something like Vim or Emacs when they're in the terminal (i don't wanna create a text ed, but it's the kind of programs i'm seeking to write: which takes up all the space on the screen, where you can write at many different places, and keyboard-driven, up to why not mouse- too, if the terminal (and haskell bindings) allow it.
So, does anyone know any library to do this? Any tutorial, maybe? I'm seeking for hours, but every time i type stuff like "console application haskell" in google, it just gives me irrelevant answers --as is the trend it seems subjectively, of those last months, with our bestest G-friend. :(
thanks a lot in advance for anything! _______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
_______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners

On Fri, May 20, 2016 at 06:36:20PM +0200, Silent Leaf wrote:
All in the title!
I'm seeking a way to write a console app that isn't just asking questions one line after another with putStr and getLine. More something like Vim or Emacs when they're in the terminal (i don't wanna create a text ed, but it's the kind of programs i'm seeking to write: which takes up all the space on the screen, where you can write at many different places, and keyboard-driven, up to why not mouse- too, if the terminal (and haskell bindings) allow it.
I suppose ncurses [1] would do, or other curses packages! [1] https://hackage.haskell.org/package/ncurses

thanks a lot! will look into it then get back to you. :) it looks promising!
Le vendredi 20 mai 2016, Francesco Ariis
On Fri, May 20, 2016 at 06:36:20PM +0200, Silent Leaf wrote:
All in the title!
I'm seeking a way to write a console app that isn't just asking questions one line after another with putStr and getLine. More something like Vim or Emacs when they're in the terminal (i don't wanna create a text ed, but it's the kind of programs i'm seeking to write: which takes up all the space on the screen, where you can write at many different places, and keyboard-driven, up to why not mouse- too, if the terminal (and haskell bindings) allow it.
I suppose ncurses [1] would do, or other curses packages!
[1] https://hackage.haskell.org/package/ncurses _______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners

On Fri, May 20, 2016 at 12:13 PM, Silent Leaf
thanks a lot! will look into it then get back to you. :) it looks promising!
Le vendredi 20 mai 2016, Francesco Ariis
a écrit : On Fri, May 20, 2016 at 06:36:20PM +0200, Silent Leaf wrote:
All in the title!
I'm seeking a way to write a console app that isn't just asking questions one line after another with putStr and getLine. More something like Vim or Emacs when they're in the terminal (i don't wanna create a text ed, but it's the kind of programs i'm seeking to write: which takes up all the space on the screen, where you can write at many different places, and keyboard-driven, up to why not mouse- too, if the terminal (and haskell bindings) allow it.
I suppose ncurses [1] would do, or other curses packages!
I strongly recommend 'brick' [2]. It is very well engineered and documented. It will be much higher level than the interface provided by ncurses. [2] https://hackage.haskell.org/package/brick -- Benjamin Jones
participants (5)
-
Alex Belanger
-
Benjamin Jones
-
Daniel Bergey
-
Francesco Ariis
-
Silent Leaf