-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcurHelloW.c
24 lines (21 loc) · 1.46 KB
/
curHelloW.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* -*- Mode:C; Coding:us-ascii-unix; fill-column:132 -*- */
/**********************************************************************************************************************************/
/**
@file curHelloW.c
@author Mitch Richling <https://www.mitchr.me/>
@Copyright Copyright 1999 by Mitch Richling. All rights reserved.
@brief Minimal ncurses program demonstrating wprintw@EOL
@Keywords ncurses
@Std C89
Minimal ncurses program demonstrating the wprintw function.
***********************************************************************************************************************************/
#include <ncurses.h> /* Popular Curses ???? */
/**********************************************************************************************************************************/
int main() {
initscr(); /* Initialize curses (the SCReen) */
wprintw(stdscr, "Hello, World! (press any key to quit)"); /* Print "Hello, World!" to 'stdscr' */
refresh(); /* Draw 'stdscr' on the real screen */
getch(); /* Wait for a key press */
endwin(); /* Shutdown curses */
return 0; /* We are done, time to exit. */
} /* end func main */