/usr/share/doc/xviewg/examples/textsw/textsw.c is in xview-examples 3.2p1.4-28.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | #include <xview/xview.h>
#include <xview/textsw.h>
#include <xview/panel.h>
#define HEIGHT 500
#define WIDTH 500
Textsw textsw;
Panel panel;
Icon icon;
main(argc,argv)
int argc;
char *argv[];
{
Frame frame;
int textsw_width;
xv_init(XV_INIT_ARGS, argc, argv, 0);
frame = xv_create(XV_NULL, FRAME, FRAME_LABEL, argv[0], NULL);
/* create textsw and set the colormap segment for it */
textsw = xv_create(frame, TEXTSW,
WIN_ROWS, 20,
WIN_COLUMNS, 80,
NULL);
window_fit(frame);
xv_main_loop(frame);
}
|