i came back to this and found a workaround: ```/*...
# kotlin-native
r
i came back to this and found a workaround:
Copy code
/**
 * Replace kotlin's impl of readline
 * @return null if we hit EOF
 */
fun readLine(): String? {
    val read = fgets(buffer.refTo(0), MAX_READ, stdin)?.toKString() ?: return null
    return read.substring(0, read.length - 1)
}