print dir

This commit is contained in:
Dylan Araps 2020-08-03 16:54:48 +03:00
parent 7c0416c737
commit 9b8a2e4241
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 10 additions and 1 deletions

11
shfm
View File

@ -20,7 +20,15 @@ term_resize() {
LINES=$1 COLUMNS=$2
# leave gap above statusline
max_lines=$((LINES - 2))
line_max=$((LINES - 2))
}
list_print() {
printf '\033[2J\033[H'
for file in *; do
printf '%s\n' "$file"
done
}
key_handle() {
@ -55,6 +63,7 @@ key_handle() {
}
redraw() {
list_print
status_line
}