     ExNcurses.flushinp()
     char = ExNcurses.getch()
     ExNcurses.mvprintw(y + 1, x, "You entered '#{char}'\n")
+    ExNcurses.refresh()
     # F1 exits
     if char != ExNcurses.fun(:F1), do: sample_2a()
   end


    str = ExNcurses.getstr()
    ExNcurses.mvprintw(row - 2, 0, "You Entered: #{inspect(str)}")
    ExNcurses.getch()
  end
end

  end

  def sample_2 do
    welcome = "Running ExNcurses Sample 2"

    ExNcurses.mvprintw(
      div(ExNcurses.lines(), 2),
