This file is indexed.

/usr/share/doc/instead/manual/examples/visual.lua is in instead-doc-base 1.9.1-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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
-- example module
require "timer"
require "theme"

function fading_goto(where, step, bg)
	fading_room.where = where
	fading_room.step = game.gui.fading;
	if step then fading_room.step = step end
	fading_room._bg = bg
	return walk 'fading_room'
end

game.fading = stead.hook(game.fading, 
	function(f, s, ...)
		local r,v = f(s, unpack(arg))
		if r and fading_room.active then
			if from() == fading_room then
				fading_room.active = false
			end
			return true, fading_room.step
		end
		return r,v
	end)

fading_room = room {
	nam = true;
	var { active = false };
	var { where = 'main' };
	var { step = 4 };
	pic = true;
	entered = function(s)
		s.active = true;
		if s._bg then
			s._saved_bg = theme.get 'scr.gfx.bg';
			theme.gfx.bg(s._bg);
		end
		s._timer = timer:get();
		timer:set(1);
	end;
	exit = function(s)
		if s._bg then
			theme.gfx.bg(s._saved_bg)
		end
	end;
	timer = function(s)
		timer:set(s._timer);
		walk(s.where)
	end
}