File: help.c

package info (click to toggle)
aoeui 1.7%2B20160302.git4e5dee9-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 532 kB
  • sloc: ansic: 6,860; makefile: 294; sh: 11
file content (17 lines) | stat: -rw-r--r-- 401 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* Copyright 2007, 2008 Peter Klausler.  See COPYING for license. */
#include "all.h"

static const char *help[2] = {
#include "aoeui.help"
,
#include "asdfg.help"
};

struct view *view_help(void)
{
	struct view *view = text_create("* Help *", TEXT_EDITOR);
	view_insert(view, help[is_asdfg], 0, strlen(help[is_asdfg]));
	locus_set(view, CURSOR, 0);
	view->text->flags |= TEXT_RDONLY;
	return view;
}