Загрузить файлы в «/»
This commit is contained in:
parent
3736860917
commit
324399c125
2 changed files with 9 additions and 0 deletions
|
@ -7,3 +7,4 @@ change cursor pos - w q
|
||||||
add - space
|
add - space
|
||||||
|
|
||||||
|
|
||||||
|
pause - p
|
||||||
|
|
8
main.c
8
main.c
|
@ -35,6 +35,7 @@ int main(void) {
|
||||||
die("malloc returned NULL");
|
die("malloc returned NULL");
|
||||||
|
|
||||||
initscr();
|
initscr();
|
||||||
|
noecho();
|
||||||
timeout(0);
|
timeout(0);
|
||||||
curs_set(0);
|
curs_set(0);
|
||||||
|
|
||||||
|
@ -88,6 +89,13 @@ int main(void) {
|
||||||
cursor--;
|
cursor--;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'p':
|
||||||
|
timeout(-1);
|
||||||
|
getch();
|
||||||
|
timeout(0);
|
||||||
|
clear();
|
||||||
|
break;
|
||||||
|
|
||||||
case 'q':
|
case 'q':
|
||||||
die("Succesfull exit");
|
die("Succesfull exit");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue