Send Beginners mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."


Today's Topics:

   1.  reading lines with history from bash terminal    in OS X
      (Dennis Raddle)
   2. Re:  reading lines with history from bash terminal in OS X
      (David McBride)
   3. Re:  reading lines with history from bash terminal in OS X
      (Dennis Raddle)


----------------------------------------------------------------------

Message: 1
Date: Thu, 28 Jul 2016 15:09:54 -0700
From: Dennis Raddle <[email protected]>
To: Haskell Beginners <[email protected]>
Subject: [Haskell-beginners] reading lines with history from bash
        terminal        in OS X
Message-ID:
        <CAKxLvooX=himZahpjG=pbthsfae9bm+xkgye+0yuzy7wgwh...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

I wrote a program first in Windows, where it works as expected, and now I'm
using it in OS X and getting undesired behavior.

It reads lines from the terminal using the getLine function. In Windows
(DOS, actually) the up and down arrows can be used to choose previously
entered lines. However, this does not work in bash in OS X.

What do I need to get the history available via the arrow keys?

D
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.haskell.org/pipermail/beginners/attachments/20160728/724513c1/attachment-0001.html>

------------------------------

Message: 2
Date: Thu, 28 Jul 2016 20:05:33 -0400
From: David McBride <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] reading lines with history from bash
        terminal in OS X
Message-ID:
        <CAN+Tr4298Vjsb-wB0XBiSZ4RXyToO6-BeSK=gflkubjbbvg...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

You will have to use the haskeline library.  FYI that is the library that
makes ghci work.

On Thu, Jul 28, 2016 at 6:09 PM, Dennis Raddle <[email protected]>
wrote:

> I wrote a program first in Windows, where it works as expected, and now
> I'm using it in OS X and getting undesired behavior.
>
> It reads lines from the terminal using the getLine function. In Windows
> (DOS, actually) the up and down arrows can be used to choose previously
> entered lines. However, this does not work in bash in OS X.
>
> What do I need to get the history available via the arrow keys?
>
> D
>
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.haskell.org/pipermail/beginners/attachments/20160728/6fc2fb50/attachment-0001.html>

------------------------------

Message: 3
Date: Thu, 28 Jul 2016 17:35:27 -0700
From: Dennis Raddle <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] reading lines with history from bash
        terminal in OS X
Message-ID:
        <cakxlvoqduhdfh7cv368m-e3ihbggbfrndxd64pddgvaxot3...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Thanks. I'll install haskeline

On Thu, Jul 28, 2016 at 5:05 PM, David McBride <[email protected]> wrote:

> You will have to use the haskeline library.  FYI that is the library that
> makes ghci work.
>
> On Thu, Jul 28, 2016 at 6:09 PM, Dennis Raddle <[email protected]>
> wrote:
>
>> I wrote a program first in Windows, where it works as expected, and now
>> I'm using it in OS X and getting undesired behavior.
>>
>> It reads lines from the terminal using the getLine function. In Windows
>> (DOS, actually) the up and down arrows can be used to choose previously
>> entered lines. However, this does not work in bash in OS X.
>>
>> What do I need to get the history available via the arrow keys?
>>
>> D
>>
>>
>> _______________________________________________
>> Beginners mailing list
>> [email protected]
>> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>>
>>
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.haskell.org/pipermail/beginners/attachments/20160728/c1e71df1/attachment-0001.html>

------------------------------

Subject: Digest Footer

_______________________________________________
Beginners mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners


------------------------------

End of Beginners Digest, Vol 97, Issue 14
*****************************************

Reply via email to