mirror of
https://git.openafs.org/openafs.git
synced 2025-02-01 05:57:43 +00:00
872bc94f8c
FIXES 1774 thanks to nneul@umr.edu for providing a script to do this. gnu indent 2.2.9 options: -npro -nbad -bap -nbc -bbo -br -ce -cdw -brs -ncdb -cp1 -ncs -di2 -ndj -nfc1 -nfca -i4 -lp -npcs -nprs -psl -sc -nsob -ts8 ==================== This delta was composed from multiple commits as part of the CVS->Git migration. The checkin message with each commit was inconsistent. The following are the additional commit messages. ==================== FIXES 1774 fix subst mistake
60 lines
1.2 KiB
C
60 lines
1.2 KiB
C
/*
|
|
* Copyright 2000, International Business Machines Corporation and others.
|
|
* All Rights Reserved.
|
|
*
|
|
* This software has been released under the terms of the IBM Public
|
|
* License. For details, see the LICENSE file in the top-level source
|
|
* directory or online at http://www.openafs.org/dl/license10.html
|
|
*/
|
|
|
|
/*
|
|
* Test of the curses package, to make sure I really understand how to use it.
|
|
*/
|
|
|
|
#include <afsconfig.h>
|
|
#include <afs/param.h>
|
|
|
|
RCSID
|
|
("$Header$");
|
|
|
|
#if defined(AFS_HPUX110_ENV) && !defined(__HP_CURSES)
|
|
#define __HP_CURSES
|
|
#endif
|
|
|
|
#include <curses.h>
|
|
|
|
#include "AFS_component_version_number.c"
|
|
|
|
main(argc, argv)
|
|
int argc;
|
|
char **argv;
|
|
|
|
{ /*main */
|
|
|
|
WINDOW *mainscr;
|
|
char str[128];
|
|
int i;
|
|
|
|
mainscr = initscr();
|
|
scrollok(stdscr, TRUE);
|
|
clear();
|
|
addstr("This is my first curses string ever!\n");
|
|
refresh();
|
|
box(stdscr, '|', '-');
|
|
standout();
|
|
addstr("This is a standout string\n");
|
|
refresh();
|
|
standend();
|
|
|
|
#if 0
|
|
box addstr("Enter a string and a number: ");
|
|
refresh();
|
|
scanw(stdscr, "%s %d", str, &i);
|
|
wprintw(stdscr, "String was '%s', number was %d\n", str, i);
|
|
refresh();
|
|
#endif /* 0 */
|
|
|
|
endwin();
|
|
|
|
} /*main */
|