# Swift REPL hangs on readLine()

**URL:** <https://forums.swift.org/t/swift-repl-hangs-on-readline/30648>\
**Category:** Using Swift\
**Tags:** repl\
**Created:** [November 9, 2019, 9:17pm UTC](https://forums.swift.org/t/swift-repl-hangs-on-readline/30648 "2019-11-09T21:17:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![x77686d](https://avatars.discourse-cdn.com/v4/letter/x/5e9695/32.png) [@x77686d](https://forums.swift.org/u/x77686d)\
**Post date:** [November 9, 2019, 9:17pm UTC](https://forums.swift.org/t/swift-repl-hangs-on-readline/30648/1 "2019-11-09T21:17:23Z")

</div>

When I call readLine() in the Swift REPL, it hangs. A control-Z stops it but nothing else does. Example:

```
$ swift
Welcome to Apple Swift version 5.1 (swiftlang-1100.0.270.13 clang-1100.0.33.7).
Type :help for assistance.
  1> readLine()
testing
more?
how many lines is a line???
^D^A^B^C^E^F^G^H
^K^L
^N^O^R
^D^E^F^G^H
^K^L
^N^P^R
^D^E^F^G^H
^K^L
^N^P^R
^D^E^F^G^H
^K^L
^W^X^Y^Z
[1]+ Stopped swift
$

```
