Compare commits
6 Commits
3a6e842111
...
a12faeb9e3
Author | SHA1 | Date | |
---|---|---|---|
a12faeb9e3 | |||
d4687c5b78 | |||
25b740dce1 | |||
e0fdcb555d | |||
c5c46ebd36 | |||
0a869bd24d |
6
Makefile
6
Makefile
@@ -1,2 +1,6 @@
|
||||
program3-4: program3-4.c texted.c fileman.c
|
||||
gcc program3-4.c texted.c fileman.c -o program3-4 -Llib -lncursest -Wl,-rpath=lib
|
||||
gcc program3-4.c texted.c fileman.c -o program3-4 -lncursest
|
||||
.PHONY: full
|
||||
full:
|
||||
./installfull.sh
|
||||
make
|
||||
|
@@ -5,8 +5,8 @@ It uses a custom-compiled version of ncurses, and will likely crash if used wit
|
||||
<br>
|
||||
The following steps are used to compile the version of ncurses that this program needs:
|
||||
- Grab the ncurses source code from [here](https://invisible-mirror.net/archives/ncurses/ncurses-6.3.tar.gz)
|
||||
- Run the configure script with the `--with-pthread --with-shared` options.
|
||||
- Run `make` and `make install`.
|
||||
- Run the configure script (for ncurses) with the `--with-pthread --with-shared` options.
|
||||
- Run `make` and `make install` to compile and install the library.
|
||||
|
||||
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
#ifndef FILEMAN_H_
|
||||
#define FILEMAN_H_
|
||||
#include "include/curses.h"
|
||||
#include <curses.h>
|
||||
#include <sys/stat.h>
|
||||
#include <string.h>
|
||||
#include <dirent.h>
|
||||
|
19
installfull.sh
Executable file
19
installfull.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
FILE=/lib/libncursest.so
|
||||
WORK_DIR="${PWD}"
|
||||
CORES="$(nproc)"
|
||||
CURSES_URL="https://invisible-mirror.net/archives/ncurses/current/ncurses.tar.gz"
|
||||
if test -f "$FILE"; then
|
||||
echo "$FILE exists; skipping ncurses compile."
|
||||
else
|
||||
echo "$FILE does not exist, fetching and compiling ncurses source code now..."
|
||||
mkdir ncurses
|
||||
wget -q -O- "${CURSES_URL}" | tar -xz -C ncurses
|
||||
echo "Fetched ncurses source code from ${CURSES_URL}..."
|
||||
cd ncurses/*/
|
||||
echo "Runnning configure script..."
|
||||
./configure --with-pthread --with-shared > /dev/null
|
||||
echo "Running make..."
|
||||
make -j"${CORES}" > /dev/null
|
||||
fi
|
||||
|
@@ -290,6 +290,7 @@ int main(int argc,char** argv) {
|
||||
if (i == highlighted) {
|
||||
wattron(mainwin,A_REVERSE);
|
||||
}
|
||||
memset(tempDir,0,strlen(tempDir));
|
||||
strcpy(tempDir,dir);
|
||||
strcat(tempDir, (char *)(*(fileList+i)));
|
||||
|
||||
|
Reference in New Issue
Block a user