example-00.scm 415 B

1234567891011121314
  1. (use-modules (ncurses curses))
  2. ;; Get the screen.
  3. (define stdscr (initscr))
  4. ;; Add a string to the screen.
  5. (addstr stdscr "Hello World!!!")
  6. ;; Refresh the screen. -- Why do we do this? String is shown without
  7. ;; refreshing the screen. Maybe this is an oddity only on my system.
  8. (refresh stdscr)
  9. ;; Wait for a character to be entered.
  10. (getch stdscr)
  11. ;; Then end the window, effectively ending the program.
  12. (endwin)