summaryrefslogtreecommitdiff
path: root/screen.c
blob: 34b27f3cca1da47c576ae746bbf3a7f17de22916 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <curses.h>

#include "screen.h"

WINDOW *screen_init(bool israw)
{
	WINDOW *screen = initscr();

	if (israw)
		raw();
	noecho();
	cbreak();
	nodelay(screen, TRUE);
	keypad(stdscr, TRUE);
	refresh();
	wrefresh(screen);

	return screen;
}

void screen_end(void)
{
	endwin();
}
tion value='0' selected='selected'>unified
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>2016-05-22 15:35:13 +0200
committerFelipe Balbi <felipe.balbi@linux.intel.com>2016-05-31 11:12:58 +0300
commit375f62e7dd38440f9b7b31d99a36cc4286f47004 (patch)
tree17e4db48598fafce553c63c0de1648f493953c61 /Documentation/i2c
parent15186f1011b088432a10f435aa6e2df5ab177503 (diff)
Documentation: configfs-usb-gadget-uvc: fix kernel version
v3.20 doesn't exist, it is actually v4.0. Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'Documentation/i2c')