Загрузить файлы в «/»

This commit is contained in:
8nlight 2023-09-15 10:02:41 +03:00
parent 3736860917
commit 324399c125
2 changed files with 9 additions and 0 deletions

View File

@ -7,3 +7,4 @@ change cursor pos - w q
add - space
pause - p

8
main.c
View File

@ -35,6 +35,7 @@ int main(void) {
die("malloc returned NULL");
initscr();
noecho();
timeout(0);
curs_set(0);
@ -88,6 +89,13 @@ int main(void) {
cursor--;
break;
case 'p':
timeout(-1);
getch();
timeout(0);
clear();
break;
case 'q':
die("Succesfull exit");